index
int64
repo_id
string
file_path
string
content
string
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/ResolverInput.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.ResolverInput} */ public final class ResolverInput extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.ResolverInput) ResolverInputOrBuilder { private static final long serialVersionUID = 0L; // Use ResolverInput.newBuilder() to construct. private ResolverInput(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ResolverInput() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResolverInput(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ResolverInput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ResolverInput_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.ResolverInput.class, ai.chalk.protos.chalk.graph.v1.ResolverInput.Builder.class); } private int annotationCase_ = 0; @SuppressWarnings("serial") private java.lang.Object annotation_; public enum AnnotationCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FEATURE(1), DF(2), STATE(3), ANNOTATION_NOT_SET(0); private final int value; private AnnotationCase(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 AnnotationCase valueOf(int value) { return forNumber(value); } public static AnnotationCase forNumber(int value) { switch (value) { case 1: return FEATURE; case 2: return DF; case 3: return STATE; case 0: return ANNOTATION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public AnnotationCase getAnnotationCase() { return AnnotationCase.forNumber( annotationCase_); } public static final int FEATURE_FIELD_NUMBER = 1; /** * <code>.chalk.graph.v1.FeatureInput feature = 1 [json_name = "feature"];</code> * @return Whether the feature field is set. */ @java.lang.Override public boolean hasFeature() { return annotationCase_ == 1; } /** * <code>.chalk.graph.v1.FeatureInput feature = 1 [json_name = "feature"];</code> * @return The feature. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureInput getFeature() { if (annotationCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.FeatureInput) annotation_; } return ai.chalk.protos.chalk.graph.v1.FeatureInput.getDefaultInstance(); } /** * <code>.chalk.graph.v1.FeatureInput feature = 1 [json_name = "feature"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureInputOrBuilder getFeatureOrBuilder() { if (annotationCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.FeatureInput) annotation_; } return ai.chalk.protos.chalk.graph.v1.FeatureInput.getDefaultInstance(); } public static final int DF_FIELD_NUMBER = 2; /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> * @return Whether the df field is set. */ @java.lang.Override public boolean hasDf() { return annotationCase_ == 2; } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> * @return The df. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.DataFrameType getDf() { if (annotationCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_; } return ai.chalk.protos.chalk.graph.v1.DataFrameType.getDefaultInstance(); } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.DataFrameTypeOrBuilder getDfOrBuilder() { if (annotationCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_; } return ai.chalk.protos.chalk.graph.v1.DataFrameType.getDefaultInstance(); } public static final int STATE_FIELD_NUMBER = 3; /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> * @return Whether the state field is set. */ @java.lang.Override public boolean hasState() { return annotationCase_ == 3; } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> * @return The state. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverState getState() { if (annotationCase_ == 3) { return (ai.chalk.protos.chalk.graph.v1.ResolverState) annotation_; } return ai.chalk.protos.chalk.graph.v1.ResolverState.getDefaultInstance(); } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverStateOrBuilder getStateOrBuilder() { if (annotationCase_ == 3) { return (ai.chalk.protos.chalk.graph.v1.ResolverState) annotation_; } return ai.chalk.protos.chalk.graph.v1.ResolverState.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 (annotationCase_ == 1) { output.writeMessage(1, (ai.chalk.protos.chalk.graph.v1.FeatureInput) annotation_); } if (annotationCase_ == 2) { output.writeMessage(2, (ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_); } if (annotationCase_ == 3) { output.writeMessage(3, (ai.chalk.protos.chalk.graph.v1.ResolverState) annotation_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (annotationCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (ai.chalk.protos.chalk.graph.v1.FeatureInput) annotation_); } if (annotationCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_); } if (annotationCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (ai.chalk.protos.chalk.graph.v1.ResolverState) annotation_); } 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.graph.v1.ResolverInput)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.ResolverInput other = (ai.chalk.protos.chalk.graph.v1.ResolverInput) obj; if (!getAnnotationCase().equals(other.getAnnotationCase())) return false; switch (annotationCase_) { case 1: if (!getFeature() .equals(other.getFeature())) return false; break; case 2: if (!getDf() .equals(other.getDf())) return false; break; case 3: if (!getState() .equals(other.getState())) 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 (annotationCase_) { case 1: hash = (37 * hash) + FEATURE_FIELD_NUMBER; hash = (53 * hash) + getFeature().hashCode(); break; case 2: hash = (37 * hash) + DF_FIELD_NUMBER; hash = (53 * hash) + getDf().hashCode(); break; case 3: hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.ResolverInput parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.ResolverInput 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.graph.v1.ResolverInput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.ResolverInput 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.graph.v1.ResolverInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.ResolverInput parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.ResolverInput parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.ResolverInput 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.graph.v1.ResolverInput parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.ResolverInput 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.graph.v1.ResolverInput parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.ResolverInput 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.graph.v1.ResolverInput 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.graph.v1.ResolverInput} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.ResolverInput) ai.chalk.protos.chalk.graph.v1.ResolverInputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ResolverInput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ResolverInput_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.ResolverInput.class, ai.chalk.protos.chalk.graph.v1.ResolverInput.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.ResolverInput.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (featureBuilder_ != null) { featureBuilder_.clear(); } if (dfBuilder_ != null) { dfBuilder_.clear(); } if (stateBuilder_ != null) { stateBuilder_.clear(); } annotationCase_ = 0; annotation_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ResolverInput_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverInput getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.ResolverInput.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverInput build() { ai.chalk.protos.chalk.graph.v1.ResolverInput result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverInput buildPartial() { ai.chalk.protos.chalk.graph.v1.ResolverInput result = new ai.chalk.protos.chalk.graph.v1.ResolverInput(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.ResolverInput result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(ai.chalk.protos.chalk.graph.v1.ResolverInput result) { result.annotationCase_ = annotationCase_; result.annotation_ = this.annotation_; if (annotationCase_ == 1 && featureBuilder_ != null) { result.annotation_ = featureBuilder_.build(); } if (annotationCase_ == 2 && dfBuilder_ != null) { result.annotation_ = dfBuilder_.build(); } if (annotationCase_ == 3 && stateBuilder_ != null) { result.annotation_ = stateBuilder_.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.graph.v1.ResolverInput) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.ResolverInput)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.ResolverInput other) { if (other == ai.chalk.protos.chalk.graph.v1.ResolverInput.getDefaultInstance()) return this; switch (other.getAnnotationCase()) { case FEATURE: { mergeFeature(other.getFeature()); break; } case DF: { mergeDf(other.getDf()); break; } case STATE: { mergeState(other.getState()); break; } case ANNOTATION_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( getFeatureFieldBuilder().getBuilder(), extensionRegistry); annotationCase_ = 1; break; } // case 10 case 18: { input.readMessage( getDfFieldBuilder().getBuilder(), extensionRegistry); annotationCase_ = 2; break; } // case 18 case 26: { input.readMessage( getStateFieldBuilder().getBuilder(), extensionRegistry); annotationCase_ = 3; 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 annotationCase_ = 0; private java.lang.Object annotation_; public AnnotationCase getAnnotationCase() { return AnnotationCase.forNumber( annotationCase_); } public Builder clearAnnotation() { annotationCase_ = 0; annotation_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureInput, ai.chalk.protos.chalk.graph.v1.FeatureInput.Builder, ai.chalk.protos.chalk.graph.v1.FeatureInputOrBuilder> featureBuilder_; /** * <code>.chalk.graph.v1.FeatureInput feature = 1 [json_name = "feature"];</code> * @return Whether the feature field is set. */ @java.lang.Override public boolean hasFeature() { return annotationCase_ == 1; } /** * <code>.chalk.graph.v1.FeatureInput feature = 1 [json_name = "feature"];</code> * @return The feature. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureInput getFeature() { if (featureBuilder_ == null) { if (annotationCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.FeatureInput) annotation_; } return ai.chalk.protos.chalk.graph.v1.FeatureInput.getDefaultInstance(); } else { if (annotationCase_ == 1) { return featureBuilder_.getMessage(); } return ai.chalk.protos.chalk.graph.v1.FeatureInput.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.FeatureInput feature = 1 [json_name = "feature"];</code> */ public Builder setFeature(ai.chalk.protos.chalk.graph.v1.FeatureInput value) { if (featureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } annotation_ = value; onChanged(); } else { featureBuilder_.setMessage(value); } annotationCase_ = 1; return this; } /** * <code>.chalk.graph.v1.FeatureInput feature = 1 [json_name = "feature"];</code> */ public Builder setFeature( ai.chalk.protos.chalk.graph.v1.FeatureInput.Builder builderForValue) { if (featureBuilder_ == null) { annotation_ = builderForValue.build(); onChanged(); } else { featureBuilder_.setMessage(builderForValue.build()); } annotationCase_ = 1; return this; } /** * <code>.chalk.graph.v1.FeatureInput feature = 1 [json_name = "feature"];</code> */ public Builder mergeFeature(ai.chalk.protos.chalk.graph.v1.FeatureInput value) { if (featureBuilder_ == null) { if (annotationCase_ == 1 && annotation_ != ai.chalk.protos.chalk.graph.v1.FeatureInput.getDefaultInstance()) { annotation_ = ai.chalk.protos.chalk.graph.v1.FeatureInput.newBuilder((ai.chalk.protos.chalk.graph.v1.FeatureInput) annotation_) .mergeFrom(value).buildPartial(); } else { annotation_ = value; } onChanged(); } else { if (annotationCase_ == 1) { featureBuilder_.mergeFrom(value); } else { featureBuilder_.setMessage(value); } } annotationCase_ = 1; return this; } /** * <code>.chalk.graph.v1.FeatureInput feature = 1 [json_name = "feature"];</code> */ public Builder clearFeature() { if (featureBuilder_ == null) { if (annotationCase_ == 1) { annotationCase_ = 0; annotation_ = null; onChanged(); } } else { if (annotationCase_ == 1) { annotationCase_ = 0; annotation_ = null; } featureBuilder_.clear(); } return this; } /** * <code>.chalk.graph.v1.FeatureInput feature = 1 [json_name = "feature"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureInput.Builder getFeatureBuilder() { return getFeatureFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.FeatureInput feature = 1 [json_name = "feature"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureInputOrBuilder getFeatureOrBuilder() { if ((annotationCase_ == 1) && (featureBuilder_ != null)) { return featureBuilder_.getMessageOrBuilder(); } else { if (annotationCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.FeatureInput) annotation_; } return ai.chalk.protos.chalk.graph.v1.FeatureInput.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.FeatureInput feature = 1 [json_name = "feature"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureInput, ai.chalk.protos.chalk.graph.v1.FeatureInput.Builder, ai.chalk.protos.chalk.graph.v1.FeatureInputOrBuilder> getFeatureFieldBuilder() { if (featureBuilder_ == null) { if (!(annotationCase_ == 1)) { annotation_ = ai.chalk.protos.chalk.graph.v1.FeatureInput.getDefaultInstance(); } featureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureInput, ai.chalk.protos.chalk.graph.v1.FeatureInput.Builder, ai.chalk.protos.chalk.graph.v1.FeatureInputOrBuilder>( (ai.chalk.protos.chalk.graph.v1.FeatureInput) annotation_, getParentForChildren(), isClean()); annotation_ = null; } annotationCase_ = 1; onChanged(); return featureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.DataFrameType, ai.chalk.protos.chalk.graph.v1.DataFrameType.Builder, ai.chalk.protos.chalk.graph.v1.DataFrameTypeOrBuilder> dfBuilder_; /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> * @return Whether the df field is set. */ @java.lang.Override public boolean hasDf() { return annotationCase_ == 2; } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> * @return The df. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.DataFrameType getDf() { if (dfBuilder_ == null) { if (annotationCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_; } return ai.chalk.protos.chalk.graph.v1.DataFrameType.getDefaultInstance(); } else { if (annotationCase_ == 2) { return dfBuilder_.getMessage(); } return ai.chalk.protos.chalk.graph.v1.DataFrameType.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ public Builder setDf(ai.chalk.protos.chalk.graph.v1.DataFrameType value) { if (dfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } annotation_ = value; onChanged(); } else { dfBuilder_.setMessage(value); } annotationCase_ = 2; return this; } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ public Builder setDf( ai.chalk.protos.chalk.graph.v1.DataFrameType.Builder builderForValue) { if (dfBuilder_ == null) { annotation_ = builderForValue.build(); onChanged(); } else { dfBuilder_.setMessage(builderForValue.build()); } annotationCase_ = 2; return this; } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ public Builder mergeDf(ai.chalk.protos.chalk.graph.v1.DataFrameType value) { if (dfBuilder_ == null) { if (annotationCase_ == 2 && annotation_ != ai.chalk.protos.chalk.graph.v1.DataFrameType.getDefaultInstance()) { annotation_ = ai.chalk.protos.chalk.graph.v1.DataFrameType.newBuilder((ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_) .mergeFrom(value).buildPartial(); } else { annotation_ = value; } onChanged(); } else { if (annotationCase_ == 2) { dfBuilder_.mergeFrom(value); } else { dfBuilder_.setMessage(value); } } annotationCase_ = 2; return this; } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ public Builder clearDf() { if (dfBuilder_ == null) { if (annotationCase_ == 2) { annotationCase_ = 0; annotation_ = null; onChanged(); } } else { if (annotationCase_ == 2) { annotationCase_ = 0; annotation_ = null; } dfBuilder_.clear(); } return this; } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ public ai.chalk.protos.chalk.graph.v1.DataFrameType.Builder getDfBuilder() { return getDfFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.DataFrameTypeOrBuilder getDfOrBuilder() { if ((annotationCase_ == 2) && (dfBuilder_ != null)) { return dfBuilder_.getMessageOrBuilder(); } else { if (annotationCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_; } return ai.chalk.protos.chalk.graph.v1.DataFrameType.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.DataFrameType, ai.chalk.protos.chalk.graph.v1.DataFrameType.Builder, ai.chalk.protos.chalk.graph.v1.DataFrameTypeOrBuilder> getDfFieldBuilder() { if (dfBuilder_ == null) { if (!(annotationCase_ == 2)) { annotation_ = ai.chalk.protos.chalk.graph.v1.DataFrameType.getDefaultInstance(); } dfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.DataFrameType, ai.chalk.protos.chalk.graph.v1.DataFrameType.Builder, ai.chalk.protos.chalk.graph.v1.DataFrameTypeOrBuilder>( (ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_, getParentForChildren(), isClean()); annotation_ = null; } annotationCase_ = 2; onChanged(); return dfBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.ResolverState, ai.chalk.protos.chalk.graph.v1.ResolverState.Builder, ai.chalk.protos.chalk.graph.v1.ResolverStateOrBuilder> stateBuilder_; /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> * @return Whether the state field is set. */ @java.lang.Override public boolean hasState() { return annotationCase_ == 3; } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> * @return The state. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverState getState() { if (stateBuilder_ == null) { if (annotationCase_ == 3) { return (ai.chalk.protos.chalk.graph.v1.ResolverState) annotation_; } return ai.chalk.protos.chalk.graph.v1.ResolverState.getDefaultInstance(); } else { if (annotationCase_ == 3) { return stateBuilder_.getMessage(); } return ai.chalk.protos.chalk.graph.v1.ResolverState.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ public Builder setState(ai.chalk.protos.chalk.graph.v1.ResolverState value) { if (stateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } annotation_ = value; onChanged(); } else { stateBuilder_.setMessage(value); } annotationCase_ = 3; return this; } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ public Builder setState( ai.chalk.protos.chalk.graph.v1.ResolverState.Builder builderForValue) { if (stateBuilder_ == null) { annotation_ = builderForValue.build(); onChanged(); } else { stateBuilder_.setMessage(builderForValue.build()); } annotationCase_ = 3; return this; } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ public Builder mergeState(ai.chalk.protos.chalk.graph.v1.ResolverState value) { if (stateBuilder_ == null) { if (annotationCase_ == 3 && annotation_ != ai.chalk.protos.chalk.graph.v1.ResolverState.getDefaultInstance()) { annotation_ = ai.chalk.protos.chalk.graph.v1.ResolverState.newBuilder((ai.chalk.protos.chalk.graph.v1.ResolverState) annotation_) .mergeFrom(value).buildPartial(); } else { annotation_ = value; } onChanged(); } else { if (annotationCase_ == 3) { stateBuilder_.mergeFrom(value); } else { stateBuilder_.setMessage(value); } } annotationCase_ = 3; return this; } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ public Builder clearState() { if (stateBuilder_ == null) { if (annotationCase_ == 3) { annotationCase_ = 0; annotation_ = null; onChanged(); } } else { if (annotationCase_ == 3) { annotationCase_ = 0; annotation_ = null; } stateBuilder_.clear(); } return this; } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ public ai.chalk.protos.chalk.graph.v1.ResolverState.Builder getStateBuilder() { return getStateFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverStateOrBuilder getStateOrBuilder() { if ((annotationCase_ == 3) && (stateBuilder_ != null)) { return stateBuilder_.getMessageOrBuilder(); } else { if (annotationCase_ == 3) { return (ai.chalk.protos.chalk.graph.v1.ResolverState) annotation_; } return ai.chalk.protos.chalk.graph.v1.ResolverState.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.ResolverState, ai.chalk.protos.chalk.graph.v1.ResolverState.Builder, ai.chalk.protos.chalk.graph.v1.ResolverStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { if (!(annotationCase_ == 3)) { annotation_ = ai.chalk.protos.chalk.graph.v1.ResolverState.getDefaultInstance(); } stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.ResolverState, ai.chalk.protos.chalk.graph.v1.ResolverState.Builder, ai.chalk.protos.chalk.graph.v1.ResolverStateOrBuilder>( (ai.chalk.protos.chalk.graph.v1.ResolverState) annotation_, getParentForChildren(), isClean()); annotation_ = null; } annotationCase_ = 3; onChanged(); return stateBuilder_; } @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.graph.v1.ResolverInput) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.ResolverInput) private static final ai.chalk.protos.chalk.graph.v1.ResolverInput DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.ResolverInput(); } public static ai.chalk.protos.chalk.graph.v1.ResolverInput getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ResolverInput> PARSER = new com.google.protobuf.AbstractParser<ResolverInput>() { @java.lang.Override public ResolverInput 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<ResolverInput> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ResolverInput> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverInput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/ResolverInputOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface ResolverInputOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.ResolverInput) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.graph.v1.FeatureInput feature = 1 [json_name = "feature"];</code> * @return Whether the feature field is set. */ boolean hasFeature(); /** * <code>.chalk.graph.v1.FeatureInput feature = 1 [json_name = "feature"];</code> * @return The feature. */ ai.chalk.protos.chalk.graph.v1.FeatureInput getFeature(); /** * <code>.chalk.graph.v1.FeatureInput feature = 1 [json_name = "feature"];</code> */ ai.chalk.protos.chalk.graph.v1.FeatureInputOrBuilder getFeatureOrBuilder(); /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> * @return Whether the df field is set. */ boolean hasDf(); /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> * @return The df. */ ai.chalk.protos.chalk.graph.v1.DataFrameType getDf(); /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ ai.chalk.protos.chalk.graph.v1.DataFrameTypeOrBuilder getDfOrBuilder(); /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> * @return Whether the state field is set. */ boolean hasState(); /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> * @return The state. */ ai.chalk.protos.chalk.graph.v1.ResolverState getState(); /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ ai.chalk.protos.chalk.graph.v1.ResolverStateOrBuilder getStateOrBuilder(); ai.chalk.protos.chalk.graph.v1.ResolverInput.AnnotationCase getAnnotationCase(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/ResolverKind.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf enum {@code chalk.graph.v1.ResolverKind} */ public enum ResolverKind implements com.google.protobuf.ProtocolMessageEnum { /** * <code>RESOLVER_KIND_UNSPECIFIED = 0;</code> */ RESOLVER_KIND_UNSPECIFIED(0), /** * <code>RESOLVER_KIND_ONLINE = 1;</code> */ RESOLVER_KIND_ONLINE(1), /** * <code>RESOLVER_KIND_OFFLINE = 2;</code> */ RESOLVER_KIND_OFFLINE(2), UNRECOGNIZED(-1), ; /** * <code>RESOLVER_KIND_UNSPECIFIED = 0;</code> */ public static final int RESOLVER_KIND_UNSPECIFIED_VALUE = 0; /** * <code>RESOLVER_KIND_ONLINE = 1;</code> */ public static final int RESOLVER_KIND_ONLINE_VALUE = 1; /** * <code>RESOLVER_KIND_OFFLINE = 2;</code> */ public static final int RESOLVER_KIND_OFFLINE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ResolverKind 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 ResolverKind forNumber(int value) { switch (value) { case 0: return RESOLVER_KIND_UNSPECIFIED; case 1: return RESOLVER_KIND_ONLINE; case 2: return RESOLVER_KIND_OFFLINE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<ResolverKind> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ResolverKind> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<ResolverKind>() { public ResolverKind findValueByNumber(int number) { return ResolverKind.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.graph.v1.GraphProto.getDescriptor().getEnumTypes().get(1); } private static final ResolverKind[] VALUES = values(); public static ResolverKind 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 ResolverKind(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:chalk.graph.v1.ResolverKind) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/ResolverOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface ResolverOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.Resolver) com.google.protobuf.MessageOrBuilder { /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return The fqn. */ java.lang.String getFqn(); /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return The bytes for fqn. */ com.google.protobuf.ByteString getFqnBytes(); /** * <code>.chalk.graph.v1.ResolverKind kind = 2 [json_name = "kind"];</code> * @return The enum numeric value on the wire for kind. */ int getKindValue(); /** * <code>.chalk.graph.v1.ResolverKind kind = 2 [json_name = "kind"];</code> * @return The kind. */ ai.chalk.protos.chalk.graph.v1.ResolverKind getKind(); /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 3 [json_name = "inputs"];</code> */ java.util.List<ai.chalk.protos.chalk.graph.v1.ResolverInput> getInputsList(); /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 3 [json_name = "inputs"];</code> */ ai.chalk.protos.chalk.graph.v1.ResolverInput getInputs(int index); /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 3 [json_name = "inputs"];</code> */ int getInputsCount(); /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 3 [json_name = "inputs"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.graph.v1.ResolverInputOrBuilder> getInputsOrBuilderList(); /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 3 [json_name = "inputs"];</code> */ ai.chalk.protos.chalk.graph.v1.ResolverInputOrBuilder getInputsOrBuilder( int index); /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 4 [json_name = "outputs"];</code> */ java.util.List<ai.chalk.protos.chalk.graph.v1.ResolverOutput> getOutputsList(); /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 4 [json_name = "outputs"];</code> */ ai.chalk.protos.chalk.graph.v1.ResolverOutput getOutputs(int index); /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 4 [json_name = "outputs"];</code> */ int getOutputsCount(); /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 4 [json_name = "outputs"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.graph.v1.ResolverOutputOrBuilder> getOutputsOrBuilderList(); /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 4 [json_name = "outputs"];</code> */ ai.chalk.protos.chalk.graph.v1.ResolverOutputOrBuilder getOutputsOrBuilder( int index); /** * <code>bool is_generator = 5 [json_name = "isGenerator"];</code> * @return The isGenerator. */ boolean getIsGenerator(); /** * <code>repeated .chalk.graph.v1.DatabaseSourceReference data_sources = 6 [json_name = "dataSources"];</code> */ java.util.List<ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference> getDataSourcesList(); /** * <code>repeated .chalk.graph.v1.DatabaseSourceReference data_sources = 6 [json_name = "dataSources"];</code> */ ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference getDataSources(int index); /** * <code>repeated .chalk.graph.v1.DatabaseSourceReference data_sources = 6 [json_name = "dataSources"];</code> */ int getDataSourcesCount(); /** * <code>repeated .chalk.graph.v1.DatabaseSourceReference data_sources = 6 [json_name = "dataSources"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.graph.v1.DatabaseSourceReferenceOrBuilder> getDataSourcesOrBuilderList(); /** * <code>repeated .chalk.graph.v1.DatabaseSourceReference data_sources = 6 [json_name = "dataSources"];</code> */ ai.chalk.protos.chalk.graph.v1.DatabaseSourceReferenceOrBuilder getDataSourcesOrBuilder( int index); /** * <code>optional string machine_type = 7 [json_name = "machineType"];</code> * @return Whether the machineType field is set. */ boolean hasMachineType(); /** * <code>optional string machine_type = 7 [json_name = "machineType"];</code> * @return The machineType. */ java.lang.String getMachineType(); /** * <code>optional string machine_type = 7 [json_name = "machineType"];</code> * @return The bytes for machineType. */ com.google.protobuf.ByteString getMachineTypeBytes(); /** * <code>repeated string tags = 8 [json_name = "tags"];</code> * @return A list containing the tags. */ java.util.List<java.lang.String> getTagsList(); /** * <code>repeated string tags = 8 [json_name = "tags"];</code> * @return The count of tags. */ int getTagsCount(); /** * <code>repeated string tags = 8 [json_name = "tags"];</code> * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** * <code>repeated string tags = 8 [json_name = "tags"];</code> * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); /** * <code>optional string owner = 9 [json_name = "owner"];</code> * @return Whether the owner field is set. */ boolean hasOwner(); /** * <code>optional string owner = 9 [json_name = "owner"];</code> * @return The owner. */ java.lang.String getOwner(); /** * <code>optional string owner = 9 [json_name = "owner"];</code> * @return The bytes for owner. */ com.google.protobuf.ByteString getOwnerBytes(); /** * <pre> * The docstring of the python function * </pre> * * <code>optional string doc = 10 [json_name = "doc"];</code> * @return Whether the doc field is set. */ boolean hasDoc(); /** * <pre> * The docstring of the python function * </pre> * * <code>optional string doc = 10 [json_name = "doc"];</code> * @return The doc. */ java.lang.String getDoc(); /** * <pre> * The docstring of the python function * </pre> * * <code>optional string doc = 10 [json_name = "doc"];</code> * @return The bytes for doc. */ com.google.protobuf.ByteString getDocBytes(); /** * <code>repeated string environments = 11 [json_name = "environments"];</code> * @return A list containing the environments. */ java.util.List<java.lang.String> getEnvironmentsList(); /** * <code>repeated string environments = 11 [json_name = "environments"];</code> * @return The count of environments. */ int getEnvironmentsCount(); /** * <code>repeated string environments = 11 [json_name = "environments"];</code> * @param index The index of the element to return. * @return The environments at the given index. */ java.lang.String getEnvironments(int index); /** * <code>repeated string environments = 11 [json_name = "environments"];</code> * @param index The index of the value to return. * @return The bytes of the environments at the given index. */ com.google.protobuf.ByteString getEnvironmentsBytes(int index); /** * <code>.google.protobuf.Duration timeout_duration = 12 [json_name = "timeoutDuration"];</code> * @return Whether the timeoutDuration field is set. */ boolean hasTimeoutDuration(); /** * <code>.google.protobuf.Duration timeout_duration = 12 [json_name = "timeoutDuration"];</code> * @return The timeoutDuration. */ com.google.protobuf.Duration getTimeoutDuration(); /** * <code>.google.protobuf.Duration timeout_duration = 12 [json_name = "timeoutDuration"];</code> */ com.google.protobuf.DurationOrBuilder getTimeoutDurationOrBuilder(); /** * <code>.chalk.graph.v1.Schedule schedule = 13 [json_name = "schedule"];</code> * @return Whether the schedule field is set. */ boolean hasSchedule(); /** * <code>.chalk.graph.v1.Schedule schedule = 13 [json_name = "schedule"];</code> * @return The schedule. */ ai.chalk.protos.chalk.graph.v1.Schedule getSchedule(); /** * <code>.chalk.graph.v1.Schedule schedule = 13 [json_name = "schedule"];</code> */ ai.chalk.protos.chalk.graph.v1.ScheduleOrBuilder getScheduleOrBuilder(); /** * <code>.chalk.expression.v1.LogicalExprNode when = 14 [json_name = "when"];</code> * @return Whether the when field is set. */ boolean hasWhen(); /** * <code>.chalk.expression.v1.LogicalExprNode when = 14 [json_name = "when"];</code> * @return The when. */ ai.chalk.protos.chalk.expression.v1.LogicalExprNode getWhen(); /** * <code>.chalk.expression.v1.LogicalExprNode when = 14 [json_name = "when"];</code> */ ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder getWhenOrBuilder(); /** * <code>.chalk.graph.v1.CronFilterWithFeatureArgs cron_filter = 15 [json_name = "cronFilter"];</code> * @return Whether the cronFilter field is set. */ boolean hasCronFilter(); /** * <code>.chalk.graph.v1.CronFilterWithFeatureArgs cron_filter = 15 [json_name = "cronFilter"];</code> * @return The cronFilter. */ ai.chalk.protos.chalk.graph.v1.CronFilterWithFeatureArgs getCronFilter(); /** * <code>.chalk.graph.v1.CronFilterWithFeatureArgs cron_filter = 15 [json_name = "cronFilter"];</code> */ ai.chalk.protos.chalk.graph.v1.CronFilterWithFeatureArgsOrBuilder getCronFilterOrBuilder(); /** * <code>.chalk.graph.v1.FunctionReference function = 16 [json_name = "function"];</code> * @return Whether the function field is set. */ boolean hasFunction(); /** * <code>.chalk.graph.v1.FunctionReference function = 16 [json_name = "function"];</code> * @return The function. */ ai.chalk.protos.chalk.graph.v1.FunctionReference getFunction(); /** * <code>.chalk.graph.v1.FunctionReference function = 16 [json_name = "function"];</code> */ ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder getFunctionOrBuilder(); /** * <code>.chalk.graph.v1.ResourceHint resource_hint = 17 [json_name = "resourceHint"];</code> * @return The enum numeric value on the wire for resourceHint. */ int getResourceHintValue(); /** * <code>.chalk.graph.v1.ResourceHint resource_hint = 17 [json_name = "resourceHint"];</code> * @return The resourceHint. */ ai.chalk.protos.chalk.graph.v1.ResourceHint getResourceHint(); /** * <code>bool is_static = 18 [json_name = "isStatic"];</code> * @return The isStatic. */ boolean getIsStatic(); /** * <code>optional bool is_total = 19 [json_name = "isTotal"];</code> * @return Whether the isTotal field is set. */ boolean hasIsTotal(); /** * <code>optional bool is_total = 19 [json_name = "isTotal"];</code> * @return The isTotal. */ boolean getIsTotal(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/ResolverOutput.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.ResolverOutput} */ public final class ResolverOutput extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.ResolverOutput) ResolverOutputOrBuilder { private static final long serialVersionUID = 0L; // Use ResolverOutput.newBuilder() to construct. private ResolverOutput(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ResolverOutput() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResolverOutput(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ResolverOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ResolverOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.ResolverOutput.class, ai.chalk.protos.chalk.graph.v1.ResolverOutput.Builder.class); } private int annotationCase_ = 0; @SuppressWarnings("serial") private java.lang.Object annotation_; public enum AnnotationCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FEATURE(1), DF(2), ANNOTATION_NOT_SET(0); private final int value; private AnnotationCase(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 AnnotationCase valueOf(int value) { return forNumber(value); } public static AnnotationCase forNumber(int value) { switch (value) { case 1: return FEATURE; case 2: return DF; case 0: return ANNOTATION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public AnnotationCase getAnnotationCase() { return AnnotationCase.forNumber( annotationCase_); } public static final int FEATURE_FIELD_NUMBER = 1; /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> * @return Whether the feature field is set. */ @java.lang.Override public boolean hasFeature() { return annotationCase_ == 1; } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> * @return The feature. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureReference getFeature() { if (annotationCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.FeatureReference) annotation_; } return ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance(); } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getFeatureOrBuilder() { if (annotationCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.FeatureReference) annotation_; } return ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance(); } public static final int DF_FIELD_NUMBER = 2; /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> * @return Whether the df field is set. */ @java.lang.Override public boolean hasDf() { return annotationCase_ == 2; } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> * @return The df. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.DataFrameType getDf() { if (annotationCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_; } return ai.chalk.protos.chalk.graph.v1.DataFrameType.getDefaultInstance(); } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.DataFrameTypeOrBuilder getDfOrBuilder() { if (annotationCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_; } return ai.chalk.protos.chalk.graph.v1.DataFrameType.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 (annotationCase_ == 1) { output.writeMessage(1, (ai.chalk.protos.chalk.graph.v1.FeatureReference) annotation_); } if (annotationCase_ == 2) { output.writeMessage(2, (ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (annotationCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (ai.chalk.protos.chalk.graph.v1.FeatureReference) annotation_); } if (annotationCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_); } 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.graph.v1.ResolverOutput)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.ResolverOutput other = (ai.chalk.protos.chalk.graph.v1.ResolverOutput) obj; if (!getAnnotationCase().equals(other.getAnnotationCase())) return false; switch (annotationCase_) { case 1: if (!getFeature() .equals(other.getFeature())) return false; break; case 2: if (!getDf() .equals(other.getDf())) 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 (annotationCase_) { case 1: hash = (37 * hash) + FEATURE_FIELD_NUMBER; hash = (53 * hash) + getFeature().hashCode(); break; case 2: hash = (37 * hash) + DF_FIELD_NUMBER; hash = (53 * hash) + getDf().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.ResolverOutput parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.ResolverOutput 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.graph.v1.ResolverOutput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.ResolverOutput 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.graph.v1.ResolverOutput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.ResolverOutput parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.ResolverOutput parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.ResolverOutput 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.graph.v1.ResolverOutput parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.ResolverOutput 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.graph.v1.ResolverOutput parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.ResolverOutput 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.graph.v1.ResolverOutput 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.graph.v1.ResolverOutput} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.ResolverOutput) ai.chalk.protos.chalk.graph.v1.ResolverOutputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ResolverOutput_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ResolverOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.ResolverOutput.class, ai.chalk.protos.chalk.graph.v1.ResolverOutput.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.ResolverOutput.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (featureBuilder_ != null) { featureBuilder_.clear(); } if (dfBuilder_ != null) { dfBuilder_.clear(); } annotationCase_ = 0; annotation_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ResolverOutput_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverOutput getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.ResolverOutput.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverOutput build() { ai.chalk.protos.chalk.graph.v1.ResolverOutput result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverOutput buildPartial() { ai.chalk.protos.chalk.graph.v1.ResolverOutput result = new ai.chalk.protos.chalk.graph.v1.ResolverOutput(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.ResolverOutput result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(ai.chalk.protos.chalk.graph.v1.ResolverOutput result) { result.annotationCase_ = annotationCase_; result.annotation_ = this.annotation_; if (annotationCase_ == 1 && featureBuilder_ != null) { result.annotation_ = featureBuilder_.build(); } if (annotationCase_ == 2 && dfBuilder_ != null) { result.annotation_ = dfBuilder_.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.graph.v1.ResolverOutput) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.ResolverOutput)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.ResolverOutput other) { if (other == ai.chalk.protos.chalk.graph.v1.ResolverOutput.getDefaultInstance()) return this; switch (other.getAnnotationCase()) { case FEATURE: { mergeFeature(other.getFeature()); break; } case DF: { mergeDf(other.getDf()); break; } case ANNOTATION_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( getFeatureFieldBuilder().getBuilder(), extensionRegistry); annotationCase_ = 1; break; } // case 10 case 18: { input.readMessage( getDfFieldBuilder().getBuilder(), extensionRegistry); annotationCase_ = 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 annotationCase_ = 0; private java.lang.Object annotation_; public AnnotationCase getAnnotationCase() { return AnnotationCase.forNumber( annotationCase_); } public Builder clearAnnotation() { annotationCase_ = 0; annotation_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder> featureBuilder_; /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> * @return Whether the feature field is set. */ @java.lang.Override public boolean hasFeature() { return annotationCase_ == 1; } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> * @return The feature. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureReference getFeature() { if (featureBuilder_ == null) { if (annotationCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.FeatureReference) annotation_; } return ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance(); } else { if (annotationCase_ == 1) { return featureBuilder_.getMessage(); } return ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ public Builder setFeature(ai.chalk.protos.chalk.graph.v1.FeatureReference value) { if (featureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } annotation_ = value; onChanged(); } else { featureBuilder_.setMessage(value); } annotationCase_ = 1; return this; } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ public Builder setFeature( ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder builderForValue) { if (featureBuilder_ == null) { annotation_ = builderForValue.build(); onChanged(); } else { featureBuilder_.setMessage(builderForValue.build()); } annotationCase_ = 1; return this; } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ public Builder mergeFeature(ai.chalk.protos.chalk.graph.v1.FeatureReference value) { if (featureBuilder_ == null) { if (annotationCase_ == 1 && annotation_ != ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance()) { annotation_ = ai.chalk.protos.chalk.graph.v1.FeatureReference.newBuilder((ai.chalk.protos.chalk.graph.v1.FeatureReference) annotation_) .mergeFrom(value).buildPartial(); } else { annotation_ = value; } onChanged(); } else { if (annotationCase_ == 1) { featureBuilder_.mergeFrom(value); } else { featureBuilder_.setMessage(value); } } annotationCase_ = 1; return this; } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ public Builder clearFeature() { if (featureBuilder_ == null) { if (annotationCase_ == 1) { annotationCase_ = 0; annotation_ = null; onChanged(); } } else { if (annotationCase_ == 1) { annotationCase_ = 0; annotation_ = null; } featureBuilder_.clear(); } return this; } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder getFeatureBuilder() { return getFeatureFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getFeatureOrBuilder() { if ((annotationCase_ == 1) && (featureBuilder_ != null)) { return featureBuilder_.getMessageOrBuilder(); } else { if (annotationCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.FeatureReference) annotation_; } return ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder> getFeatureFieldBuilder() { if (featureBuilder_ == null) { if (!(annotationCase_ == 1)) { annotation_ = ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance(); } featureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder>( (ai.chalk.protos.chalk.graph.v1.FeatureReference) annotation_, getParentForChildren(), isClean()); annotation_ = null; } annotationCase_ = 1; onChanged(); return featureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.DataFrameType, ai.chalk.protos.chalk.graph.v1.DataFrameType.Builder, ai.chalk.protos.chalk.graph.v1.DataFrameTypeOrBuilder> dfBuilder_; /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> * @return Whether the df field is set. */ @java.lang.Override public boolean hasDf() { return annotationCase_ == 2; } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> * @return The df. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.DataFrameType getDf() { if (dfBuilder_ == null) { if (annotationCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_; } return ai.chalk.protos.chalk.graph.v1.DataFrameType.getDefaultInstance(); } else { if (annotationCase_ == 2) { return dfBuilder_.getMessage(); } return ai.chalk.protos.chalk.graph.v1.DataFrameType.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ public Builder setDf(ai.chalk.protos.chalk.graph.v1.DataFrameType value) { if (dfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } annotation_ = value; onChanged(); } else { dfBuilder_.setMessage(value); } annotationCase_ = 2; return this; } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ public Builder setDf( ai.chalk.protos.chalk.graph.v1.DataFrameType.Builder builderForValue) { if (dfBuilder_ == null) { annotation_ = builderForValue.build(); onChanged(); } else { dfBuilder_.setMessage(builderForValue.build()); } annotationCase_ = 2; return this; } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ public Builder mergeDf(ai.chalk.protos.chalk.graph.v1.DataFrameType value) { if (dfBuilder_ == null) { if (annotationCase_ == 2 && annotation_ != ai.chalk.protos.chalk.graph.v1.DataFrameType.getDefaultInstance()) { annotation_ = ai.chalk.protos.chalk.graph.v1.DataFrameType.newBuilder((ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_) .mergeFrom(value).buildPartial(); } else { annotation_ = value; } onChanged(); } else { if (annotationCase_ == 2) { dfBuilder_.mergeFrom(value); } else { dfBuilder_.setMessage(value); } } annotationCase_ = 2; return this; } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ public Builder clearDf() { if (dfBuilder_ == null) { if (annotationCase_ == 2) { annotationCase_ = 0; annotation_ = null; onChanged(); } } else { if (annotationCase_ == 2) { annotationCase_ = 0; annotation_ = null; } dfBuilder_.clear(); } return this; } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ public ai.chalk.protos.chalk.graph.v1.DataFrameType.Builder getDfBuilder() { return getDfFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.DataFrameTypeOrBuilder getDfOrBuilder() { if ((annotationCase_ == 2) && (dfBuilder_ != null)) { return dfBuilder_.getMessageOrBuilder(); } else { if (annotationCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_; } return ai.chalk.protos.chalk.graph.v1.DataFrameType.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.DataFrameType, ai.chalk.protos.chalk.graph.v1.DataFrameType.Builder, ai.chalk.protos.chalk.graph.v1.DataFrameTypeOrBuilder> getDfFieldBuilder() { if (dfBuilder_ == null) { if (!(annotationCase_ == 2)) { annotation_ = ai.chalk.protos.chalk.graph.v1.DataFrameType.getDefaultInstance(); } dfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.DataFrameType, ai.chalk.protos.chalk.graph.v1.DataFrameType.Builder, ai.chalk.protos.chalk.graph.v1.DataFrameTypeOrBuilder>( (ai.chalk.protos.chalk.graph.v1.DataFrameType) annotation_, getParentForChildren(), isClean()); annotation_ = null; } annotationCase_ = 2; onChanged(); return dfBuilder_; } @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.graph.v1.ResolverOutput) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.ResolverOutput) private static final ai.chalk.protos.chalk.graph.v1.ResolverOutput DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.ResolverOutput(); } public static ai.chalk.protos.chalk.graph.v1.ResolverOutput getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ResolverOutput> PARSER = new com.google.protobuf.AbstractParser<ResolverOutput>() { @java.lang.Override public ResolverOutput 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<ResolverOutput> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ResolverOutput> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverOutput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/ResolverOutputOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface ResolverOutputOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.ResolverOutput) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> * @return Whether the feature field is set. */ boolean hasFeature(); /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> * @return The feature. */ ai.chalk.protos.chalk.graph.v1.FeatureReference getFeature(); /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getFeatureOrBuilder(); /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> * @return Whether the df field is set. */ boolean hasDf(); /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> * @return The df. */ ai.chalk.protos.chalk.graph.v1.DataFrameType getDf(); /** * <code>.chalk.graph.v1.DataFrameType df = 2 [json_name = "df"];</code> */ ai.chalk.protos.chalk.graph.v1.DataFrameTypeOrBuilder getDfOrBuilder(); ai.chalk.protos.chalk.graph.v1.ResolverOutput.AnnotationCase getAnnotationCase(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/ResolverState.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.ResolverState} */ public final class ResolverState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.ResolverState) ResolverStateOrBuilder { private static final long serialVersionUID = 0L; // Use ResolverState.newBuilder() to construct. private ResolverState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ResolverState() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResolverState(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ResolverState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ResolverState_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.ResolverState.class, ai.chalk.protos.chalk.graph.v1.ResolverState.Builder.class); } private int bitField0_; public static final int INITIAL_FIELD_NUMBER = 1; private ai.chalk.protos.chalk.arrow.v1.ScalarValue initial_; /** * <code>.chalk.arrow.v1.ScalarValue initial = 1 [json_name = "initial"];</code> * @return Whether the initial field is set. */ @java.lang.Override public boolean hasInitial() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.arrow.v1.ScalarValue initial = 1 [json_name = "initial"];</code> * @return The initial. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getInitial() { return initial_ == null ? ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance() : initial_; } /** * <code>.chalk.arrow.v1.ScalarValue initial = 1 [json_name = "initial"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder getInitialOrBuilder() { return initial_ == null ? ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance() : initial_; } public static final int ARROW_TYPE_FIELD_NUMBER = 2; private ai.chalk.protos.chalk.arrow.v1.ArrowType arrowType_; /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ @java.lang.Override public boolean hasArrowType() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return The arrowType. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType() { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder() { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } 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, getInitial()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getArrowType()); } 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, getInitial()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getArrowType()); } 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.graph.v1.ResolverState)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.ResolverState other = (ai.chalk.protos.chalk.graph.v1.ResolverState) obj; if (hasInitial() != other.hasInitial()) return false; if (hasInitial()) { if (!getInitial() .equals(other.getInitial())) return false; } if (hasArrowType() != other.hasArrowType()) return false; if (hasArrowType()) { if (!getArrowType() .equals(other.getArrowType())) 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 (hasInitial()) { hash = (37 * hash) + INITIAL_FIELD_NUMBER; hash = (53 * hash) + getInitial().hashCode(); } if (hasArrowType()) { hash = (37 * hash) + ARROW_TYPE_FIELD_NUMBER; hash = (53 * hash) + getArrowType().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.ResolverState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.ResolverState 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.graph.v1.ResolverState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.ResolverState 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.graph.v1.ResolverState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.ResolverState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.ResolverState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.ResolverState 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.graph.v1.ResolverState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.ResolverState 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.graph.v1.ResolverState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.ResolverState 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.graph.v1.ResolverState 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.graph.v1.ResolverState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.ResolverState) ai.chalk.protos.chalk.graph.v1.ResolverStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ResolverState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ResolverState_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.ResolverState.class, ai.chalk.protos.chalk.graph.v1.ResolverState.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.ResolverState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getInitialFieldBuilder(); getArrowTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; initial_ = null; if (initialBuilder_ != null) { initialBuilder_.dispose(); initialBuilder_ = null; } arrowType_ = null; if (arrowTypeBuilder_ != null) { arrowTypeBuilder_.dispose(); arrowTypeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ResolverState_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverState getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.ResolverState.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverState build() { ai.chalk.protos.chalk.graph.v1.ResolverState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverState buildPartial() { ai.chalk.protos.chalk.graph.v1.ResolverState result = new ai.chalk.protos.chalk.graph.v1.ResolverState(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.ResolverState result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.initial_ = initialBuilder_ == null ? initial_ : initialBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.arrowType_ = arrowTypeBuilder_ == null ? arrowType_ : arrowTypeBuilder_.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.graph.v1.ResolverState) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.ResolverState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.ResolverState other) { if (other == ai.chalk.protos.chalk.graph.v1.ResolverState.getDefaultInstance()) return this; if (other.hasInitial()) { mergeInitial(other.getInitial()); } if (other.hasArrowType()) { mergeArrowType(other.getArrowType()); } 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( getInitialFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getArrowTypeFieldBuilder().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 ai.chalk.protos.chalk.arrow.v1.ScalarValue initial_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> initialBuilder_; /** * <code>.chalk.arrow.v1.ScalarValue initial = 1 [json_name = "initial"];</code> * @return Whether the initial field is set. */ public boolean hasInitial() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.arrow.v1.ScalarValue initial = 1 [json_name = "initial"];</code> * @return The initial. */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue getInitial() { if (initialBuilder_ == null) { return initial_ == null ? ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance() : initial_; } else { return initialBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.ScalarValue initial = 1 [json_name = "initial"];</code> */ public Builder setInitial(ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (initialBuilder_ == null) { if (value == null) { throw new NullPointerException(); } initial_ = value; } else { initialBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ScalarValue initial = 1 [json_name = "initial"];</code> */ public Builder setInitial( ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder builderForValue) { if (initialBuilder_ == null) { initial_ = builderForValue.build(); } else { initialBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ScalarValue initial = 1 [json_name = "initial"];</code> */ public Builder mergeInitial(ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (initialBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && initial_ != null && initial_ != ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance()) { getInitialBuilder().mergeFrom(value); } else { initial_ = value; } } else { initialBuilder_.mergeFrom(value); } if (initial_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.ScalarValue initial = 1 [json_name = "initial"];</code> */ public Builder clearInitial() { bitField0_ = (bitField0_ & ~0x00000001); initial_ = null; if (initialBuilder_ != null) { initialBuilder_.dispose(); initialBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.ScalarValue initial = 1 [json_name = "initial"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder getInitialBuilder() { bitField0_ |= 0x00000001; onChanged(); return getInitialFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ScalarValue initial = 1 [json_name = "initial"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder getInitialOrBuilder() { if (initialBuilder_ != null) { return initialBuilder_.getMessageOrBuilder(); } else { return initial_ == null ? ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance() : initial_; } } /** * <code>.chalk.arrow.v1.ScalarValue initial = 1 [json_name = "initial"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder>( getInitial(), getParentForChildren(), isClean()); initial_ = null; } return initialBuilder_; } private ai.chalk.protos.chalk.arrow.v1.ArrowType arrowType_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> arrowTypeBuilder_; /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ public boolean hasArrowType() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return The arrowType. */ public ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType() { if (arrowTypeBuilder_ == null) { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } else { return arrowTypeBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder setArrowType(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (arrowTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowType_ = value; } else { arrowTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder setArrowType( ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder builderForValue) { if (arrowTypeBuilder_ == null) { arrowType_ = builderForValue.build(); } else { arrowTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder mergeArrowType(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (arrowTypeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && arrowType_ != null && arrowType_ != ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance()) { getArrowTypeBuilder().mergeFrom(value); } else { arrowType_ = value; } } else { arrowTypeBuilder_.mergeFrom(value); } if (arrowType_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder clearArrowType() { bitField0_ = (bitField0_ & ~0x00000002); arrowType_ = null; if (arrowTypeBuilder_ != null) { arrowTypeBuilder_.dispose(); arrowTypeBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder getArrowTypeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getArrowTypeFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder() { if (arrowTypeBuilder_ != null) { return arrowTypeBuilder_.getMessageOrBuilder(); } else { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> getArrowTypeFieldBuilder() { if (arrowTypeBuilder_ == null) { arrowTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder>( getArrowType(), getParentForChildren(), isClean()); arrowType_ = null; } return arrowTypeBuilder_; } @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.graph.v1.ResolverState) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.ResolverState) private static final ai.chalk.protos.chalk.graph.v1.ResolverState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.ResolverState(); } public static ai.chalk.protos.chalk.graph.v1.ResolverState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ResolverState> PARSER = new com.google.protobuf.AbstractParser<ResolverState>() { @java.lang.Override public ResolverState 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<ResolverState> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ResolverState> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/ResolverStateOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface ResolverStateOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.ResolverState) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.arrow.v1.ScalarValue initial = 1 [json_name = "initial"];</code> * @return Whether the initial field is set. */ boolean hasInitial(); /** * <code>.chalk.arrow.v1.ScalarValue initial = 1 [json_name = "initial"];</code> * @return The initial. */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getInitial(); /** * <code>.chalk.arrow.v1.ScalarValue initial = 1 [json_name = "initial"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder getInitialOrBuilder(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ boolean hasArrowType(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return The arrowType. */ ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/ResourceHint.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf enum {@code chalk.graph.v1.ResourceHint} */ public enum ResourceHint implements com.google.protobuf.ProtocolMessageEnum { /** * <code>RESOURCE_HINT_UNSPECIFIED = 0;</code> */ RESOURCE_HINT_UNSPECIFIED(0), /** * <code>RESOURCE_HINT_CPU = 1;</code> */ RESOURCE_HINT_CPU(1), /** * <code>RESOURCE_HINT_IO = 2;</code> */ RESOURCE_HINT_IO(2), UNRECOGNIZED(-1), ; /** * <code>RESOURCE_HINT_UNSPECIFIED = 0;</code> */ public static final int RESOURCE_HINT_UNSPECIFIED_VALUE = 0; /** * <code>RESOURCE_HINT_CPU = 1;</code> */ public static final int RESOURCE_HINT_CPU_VALUE = 1; /** * <code>RESOURCE_HINT_IO = 2;</code> */ public static final int RESOURCE_HINT_IO_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ResourceHint 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 ResourceHint forNumber(int value) { switch (value) { case 0: return RESOURCE_HINT_UNSPECIFIED; case 1: return RESOURCE_HINT_CPU; case 2: return RESOURCE_HINT_IO; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<ResourceHint> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ResourceHint> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<ResourceHint>() { public ResourceHint findValueByNumber(int number) { return ResourceHint.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.graph.v1.GraphProto.getDescriptor().getEnumTypes().get(2); } private static final ResourceHint[] VALUES = values(); public static ResourceHint 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 ResourceHint(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:chalk.graph.v1.ResourceHint) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/SQLiteSource.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/sources.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.SQLiteSource} */ public final class SQLiteSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.SQLiteSource) SQLiteSourceOrBuilder { private static final long serialVersionUID = 0L; // Use SQLiteSource.newBuilder() to construct. private SQLiteSource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private SQLiteSource() { name_ = ""; fileName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SQLiteSource(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SQLiteSource_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 3: return internalGetEngineArgs(); case 4: return internalGetAsyncEngineArgs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SQLiteSource_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.SQLiteSource.class, ai.chalk.protos.chalk.graph.v1.SQLiteSource.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 FILE_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object fileName_ = ""; /** * <code>string file_name = 2 [json_name = "fileName"];</code> * @return The fileName. */ @java.lang.Override public java.lang.String getFileName() { java.lang.Object ref = fileName_; 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(); fileName_ = s; return s; } } /** * <code>string file_name = 2 [json_name = "fileName"];</code> * @return The bytes for fileName. */ @java.lang.Override public com.google.protobuf.ByteString getFileNameBytes() { java.lang.Object ref = fileName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fileName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENGINE_ARGS_FIELD_NUMBER = 3; private static final class EngineArgsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue>newDefaultInstance( ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SQLiteSource_EngineArgsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> engineArgs_; private com.google.protobuf.MapField<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> internalGetEngineArgs() { if (engineArgs_ == null) { return com.google.protobuf.MapField.emptyMapField( EngineArgsDefaultEntryHolder.defaultEntry); } return engineArgs_; } public int getEngineArgsCount() { return internalGetEngineArgs().getMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ @java.lang.Override public boolean containsEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetEngineArgs().getMap().containsKey(key); } /** * Use {@link #getEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgs() { return getEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgsMap() { return internalGetEngineArgs().getMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetEngineArgs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetEngineArgs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ASYNC_ENGINE_ARGS_FIELD_NUMBER = 4; private static final class AsyncEngineArgsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue>newDefaultInstance( ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SQLiteSource_AsyncEngineArgsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> asyncEngineArgs_; private com.google.protobuf.MapField<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> internalGetAsyncEngineArgs() { if (asyncEngineArgs_ == null) { return com.google.protobuf.MapField.emptyMapField( AsyncEngineArgsDefaultEntryHolder.defaultEntry); } return asyncEngineArgs_; } public int getAsyncEngineArgsCount() { return internalGetAsyncEngineArgs().getMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public boolean containsAsyncEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAsyncEngineArgs().getMap().containsKey(key); } /** * Use {@link #getAsyncEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgs() { return getAsyncEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgsMap() { return internalGetAsyncEngineArgs().getMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetAsyncEngineArgs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetAsyncEngineArgs().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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fileName_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetEngineArgs(), EngineArgsDefaultEntryHolder.defaultEntry, 3); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAsyncEngineArgs(), AsyncEngineArgsDefaultEntryHolder.defaultEntry, 4); 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(fileName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fileName_); } for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> entry : internalGetEngineArgs().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> engineArgs__ = EngineArgsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, engineArgs__); } for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> entry : internalGetAsyncEngineArgs().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> asyncEngineArgs__ = AsyncEngineArgsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, asyncEngineArgs__); } 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.graph.v1.SQLiteSource)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.SQLiteSource other = (ai.chalk.protos.chalk.graph.v1.SQLiteSource) obj; if (!getName() .equals(other.getName())) return false; if (!getFileName() .equals(other.getFileName())) return false; if (!internalGetEngineArgs().equals( other.internalGetEngineArgs())) return false; if (!internalGetAsyncEngineArgs().equals( other.internalGetAsyncEngineArgs())) 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) + FILE_NAME_FIELD_NUMBER; hash = (53 * hash) + getFileName().hashCode(); if (!internalGetEngineArgs().getMap().isEmpty()) { hash = (37 * hash) + ENGINE_ARGS_FIELD_NUMBER; hash = (53 * hash) + internalGetEngineArgs().hashCode(); } if (!internalGetAsyncEngineArgs().getMap().isEmpty()) { hash = (37 * hash) + ASYNC_ENGINE_ARGS_FIELD_NUMBER; hash = (53 * hash) + internalGetAsyncEngineArgs().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.SQLiteSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.SQLiteSource 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.graph.v1.SQLiteSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.SQLiteSource 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.graph.v1.SQLiteSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.SQLiteSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.SQLiteSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.SQLiteSource 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.graph.v1.SQLiteSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.SQLiteSource 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.graph.v1.SQLiteSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.SQLiteSource 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.graph.v1.SQLiteSource 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.graph.v1.SQLiteSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.SQLiteSource) ai.chalk.protos.chalk.graph.v1.SQLiteSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SQLiteSource_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 3: return internalGetEngineArgs(); case 4: return internalGetAsyncEngineArgs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 3: return internalGetMutableEngineArgs(); case 4: return internalGetMutableAsyncEngineArgs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SQLiteSource_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.SQLiteSource.class, ai.chalk.protos.chalk.graph.v1.SQLiteSource.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.SQLiteSource.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; fileName_ = ""; internalGetMutableEngineArgs().clear(); internalGetMutableAsyncEngineArgs().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SQLiteSource_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SQLiteSource getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.SQLiteSource.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SQLiteSource build() { ai.chalk.protos.chalk.graph.v1.SQLiteSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SQLiteSource buildPartial() { ai.chalk.protos.chalk.graph.v1.SQLiteSource result = new ai.chalk.protos.chalk.graph.v1.SQLiteSource(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.SQLiteSource result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.fileName_ = fileName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.engineArgs_ = internalGetEngineArgs().build(EngineArgsDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000008) != 0)) { result.asyncEngineArgs_ = internalGetAsyncEngineArgs().build(AsyncEngineArgsDefaultEntryHolder.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.graph.v1.SQLiteSource) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.SQLiteSource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.SQLiteSource other) { if (other == ai.chalk.protos.chalk.graph.v1.SQLiteSource.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getFileName().isEmpty()) { fileName_ = other.fileName_; bitField0_ |= 0x00000002; onChanged(); } internalGetMutableEngineArgs().mergeFrom( other.internalGetEngineArgs()); bitField0_ |= 0x00000004; internalGetMutableAsyncEngineArgs().mergeFrom( other.internalGetAsyncEngineArgs()); bitField0_ |= 0x00000008; 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: { fileName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> engineArgs__ = input.readMessage( EngineArgsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableEngineArgs().ensureBuilderMap().put( engineArgs__.getKey(), engineArgs__.getValue()); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> asyncEngineArgs__ = input.readMessage( AsyncEngineArgsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAsyncEngineArgs().ensureBuilderMap().put( asyncEngineArgs__.getKey(), asyncEngineArgs__.getValue()); 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 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 fileName_ = ""; /** * <code>string file_name = 2 [json_name = "fileName"];</code> * @return The fileName. */ public java.lang.String getFileName() { java.lang.Object ref = fileName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string file_name = 2 [json_name = "fileName"];</code> * @return The bytes for fileName. */ public com.google.protobuf.ByteString getFileNameBytes() { java.lang.Object ref = fileName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fileName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string file_name = 2 [json_name = "fileName"];</code> * @param value The fileName to set. * @return This builder for chaining. */ public Builder setFileName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fileName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>string file_name = 2 [json_name = "fileName"];</code> * @return This builder for chaining. */ public Builder clearFileName() { fileName_ = getDefaultInstance().getFileName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string file_name = 2 [json_name = "fileName"];</code> * @param value The bytes for fileName to set. * @return This builder for chaining. */ public Builder setFileNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fileName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private static final class EngineArgsConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue> { @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue build(ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder val) { if (val instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { return (ai.chalk.protos.chalk.arrow.v1.ScalarValue) val; } return ((ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry() { return EngineArgsDefaultEntryHolder.defaultEntry; } }; private static final EngineArgsConverter engineArgsConverter = new EngineArgsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> engineArgs_; private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetEngineArgs() { if (engineArgs_ == null) { return new com.google.protobuf.MapFieldBuilder<>(engineArgsConverter); } return engineArgs_; } private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetMutableEngineArgs() { if (engineArgs_ == null) { engineArgs_ = new com.google.protobuf.MapFieldBuilder<>(engineArgsConverter); } bitField0_ |= 0x00000004; onChanged(); return engineArgs_; } public int getEngineArgsCount() { return internalGetEngineArgs().ensureBuilderMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ @java.lang.Override public boolean containsEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetEngineArgs().ensureBuilderMap().containsKey(key); } /** * Use {@link #getEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgs() { return getEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgsMap() { return internalGetEngineArgs().getImmutableMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableEngineArgs().ensureBuilderMap(); return map.containsKey(key) ? engineArgsConverter.build(map.get(key)) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableEngineArgs().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return engineArgsConverter.build(map.get(key)); } public Builder clearEngineArgs() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableEngineArgs().clear(); return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ public Builder removeEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableEngineArgs().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getMutableEngineArgs() { bitField0_ |= 0x00000004; return internalGetMutableEngineArgs().ensureMessageMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ public Builder putEngineArgs( java.lang.String key, ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableEngineArgs().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000004; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ public Builder putAllEngineArgs( java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> values) { for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableEngineArgs().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000004; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder putEngineArgsBuilderIfAbsent( java.lang.String key) { java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> builderMap = internalGetMutableEngineArgs().ensureBuilderMap(); ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder entry = builderMap.get(key); if (entry == null) { entry = ai.chalk.protos.chalk.arrow.v1.ScalarValue.newBuilder(); builderMap.put(key, entry); } if (entry instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { entry = ((ai.chalk.protos.chalk.arrow.v1.ScalarValue) entry).toBuilder(); builderMap.put(key, entry); } return (ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder) entry; } private static final class AsyncEngineArgsConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue> { @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue build(ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder val) { if (val instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { return (ai.chalk.protos.chalk.arrow.v1.ScalarValue) val; } return ((ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry() { return AsyncEngineArgsDefaultEntryHolder.defaultEntry; } }; private static final AsyncEngineArgsConverter asyncEngineArgsConverter = new AsyncEngineArgsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> asyncEngineArgs_; private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetAsyncEngineArgs() { if (asyncEngineArgs_ == null) { return new com.google.protobuf.MapFieldBuilder<>(asyncEngineArgsConverter); } return asyncEngineArgs_; } private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetMutableAsyncEngineArgs() { if (asyncEngineArgs_ == null) { asyncEngineArgs_ = new com.google.protobuf.MapFieldBuilder<>(asyncEngineArgsConverter); } bitField0_ |= 0x00000008; onChanged(); return asyncEngineArgs_; } public int getAsyncEngineArgsCount() { return internalGetAsyncEngineArgs().ensureBuilderMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public boolean containsAsyncEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAsyncEngineArgs().ensureBuilderMap().containsKey(key); } /** * Use {@link #getAsyncEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgs() { return getAsyncEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgsMap() { return internalGetAsyncEngineArgs().getImmutableMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableAsyncEngineArgs().ensureBuilderMap(); return map.containsKey(key) ? asyncEngineArgsConverter.build(map.get(key)) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableAsyncEngineArgs().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return asyncEngineArgsConverter.build(map.get(key)); } public Builder clearAsyncEngineArgs() { bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableAsyncEngineArgs().clear(); return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ public Builder removeAsyncEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAsyncEngineArgs().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getMutableAsyncEngineArgs() { bitField0_ |= 0x00000008; return internalGetMutableAsyncEngineArgs().ensureMessageMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ public Builder putAsyncEngineArgs( java.lang.String key, ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAsyncEngineArgs().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000008; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ public Builder putAllAsyncEngineArgs( java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> values) { for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableAsyncEngineArgs().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000008; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder putAsyncEngineArgsBuilderIfAbsent( java.lang.String key) { java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> builderMap = internalGetMutableAsyncEngineArgs().ensureBuilderMap(); ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder entry = builderMap.get(key); if (entry == null) { entry = ai.chalk.protos.chalk.arrow.v1.ScalarValue.newBuilder(); builderMap.put(key, entry); } if (entry instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { entry = ((ai.chalk.protos.chalk.arrow.v1.ScalarValue) entry).toBuilder(); builderMap.put(key, entry); } return (ai.chalk.protos.chalk.arrow.v1.ScalarValue.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.graph.v1.SQLiteSource) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.SQLiteSource) private static final ai.chalk.protos.chalk.graph.v1.SQLiteSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.SQLiteSource(); } public static ai.chalk.protos.chalk.graph.v1.SQLiteSource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<SQLiteSource> PARSER = new com.google.protobuf.AbstractParser<SQLiteSource>() { @java.lang.Override public SQLiteSource 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<SQLiteSource> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<SQLiteSource> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SQLiteSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/SQLiteSourceOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/sources.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface SQLiteSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.SQLiteSource) 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 file_name = 2 [json_name = "fileName"];</code> * @return The fileName. */ java.lang.String getFileName(); /** * <code>string file_name = 2 [json_name = "fileName"];</code> * @return The bytes for fileName. */ com.google.protobuf.ByteString getFileNameBytes(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ int getEngineArgsCount(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ boolean containsEngineArgs( java.lang.String key); /** * Use {@link #getEngineArgsMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgs(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgsMap(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 3 [json_name = "engineArgs"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrThrow( java.lang.String key); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ int getAsyncEngineArgsCount(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ boolean containsAsyncEngineArgs( java.lang.String key); /** * Use {@link #getAsyncEngineArgsMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgs(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgsMap(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 4 [json_name = "asyncEngineArgs"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrThrow( java.lang.String key); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/ScalarFeatureType.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.ScalarFeatureType} */ public final class ScalarFeatureType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.ScalarFeatureType) ScalarFeatureTypeOrBuilder { private static final long serialVersionUID = 0L; // Use ScalarFeatureType.newBuilder() to construct. private ScalarFeatureType(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private ScalarFeatureType() { name_ = ""; namespace_ = ""; tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); description_ = ""; owner_ = ""; validations_ = java.util.Collections.emptyList(); attributeName_ = ""; cacheStrategy_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScalarFeatureType(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ScalarFeatureType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ScalarFeatureType_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.ScalarFeatureType.class, ai.chalk.protos.chalk.graph.v1.ScalarFeatureType.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 NAMESPACE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; /** * <code>string namespace = 2 [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 = 2 [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 IS_AUTOGENERATED_FIELD_NUMBER = 3; private boolean isAutogenerated_ = false; /** * <code>bool is_autogenerated = 3 [json_name = "isAutogenerated"];</code> * @return The isAutogenerated. */ @java.lang.Override public boolean getIsAutogenerated() { return isAutogenerated_; } public static final int NO_DISPLAY_FIELD_NUMBER = 4; private boolean noDisplay_ = false; /** * <code>bool no_display = 4 [json_name = "noDisplay"];</code> * @return The noDisplay. */ @java.lang.Override public boolean getNoDisplay() { return noDisplay_; } public static final int IS_PRIMARY_FIELD_NUMBER = 5; private boolean isPrimary_ = false; /** * <code>bool is_primary = 5 [json_name = "isPrimary"];</code> * @return The isPrimary. */ @java.lang.Override public boolean getIsPrimary() { return isPrimary_; } public static final int IS_NULLABLE_FIELD_NUMBER = 6; private boolean isNullable_ = false; /** * <code>bool is_nullable = 6 [json_name = "isNullable"];</code> * @return The isNullable. */ @java.lang.Override public boolean getIsNullable() { return isNullable_; } public static final int INTERNAL_VERSION_FIELD_NUMBER = 7; private long internalVersion_ = 0L; /** * <code>optional uint64 internal_version = 7 [json_name = "internalVersion"];</code> * @return Whether the internalVersion field is set. */ @java.lang.Override public boolean hasInternalVersion() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>optional uint64 internal_version = 7 [json_name = "internalVersion"];</code> * @return The internalVersion. */ @java.lang.Override public long getInternalVersion() { return internalVersion_; } public static final int MAX_STALENESS_DURATION_FIELD_NUMBER = 8; private com.google.protobuf.Duration maxStalenessDuration_; /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>.google.protobuf.Duration max_staleness_duration = 8 [json_name = "maxStalenessDuration"];</code> * @return Whether the maxStalenessDuration field is set. */ @java.lang.Override public boolean hasMaxStalenessDuration() { return ((bitField0_ & 0x00000002) != 0); } /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>.google.protobuf.Duration max_staleness_duration = 8 [json_name = "maxStalenessDuration"];</code> * @return The maxStalenessDuration. */ @java.lang.Override public com.google.protobuf.Duration getMaxStalenessDuration() { return maxStalenessDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxStalenessDuration_; } /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>.google.protobuf.Duration max_staleness_duration = 8 [json_name = "maxStalenessDuration"];</code> */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxStalenessDurationOrBuilder() { return maxStalenessDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxStalenessDuration_; } public static final int OFFLINE_TTL_DURATION_FIELD_NUMBER = 10; private com.google.protobuf.Duration offlineTtlDuration_; /** * <code>.google.protobuf.Duration offline_ttl_duration = 10 [json_name = "offlineTtlDuration"];</code> * @return Whether the offlineTtlDuration field is set. */ @java.lang.Override public boolean hasOfflineTtlDuration() { return ((bitField0_ & 0x00000004) != 0); } /** * <code>.google.protobuf.Duration offline_ttl_duration = 10 [json_name = "offlineTtlDuration"];</code> * @return The offlineTtlDuration. */ @java.lang.Override public com.google.protobuf.Duration getOfflineTtlDuration() { return offlineTtlDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : offlineTtlDuration_; } /** * <code>.google.protobuf.Duration offline_ttl_duration = 10 [json_name = "offlineTtlDuration"];</code> */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getOfflineTtlDurationOrBuilder() { return offlineTtlDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : offlineTtlDuration_; } public static final int ARROW_TYPE_FIELD_NUMBER = 11; private ai.chalk.protos.chalk.arrow.v1.ArrowType arrowType_; /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 11 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ @java.lang.Override public boolean hasArrowType() { return ((bitField0_ & 0x00000008) != 0); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 11 [json_name = "arrowType"];</code> * @return The arrowType. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType() { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 11 [json_name = "arrowType"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder() { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } public static final int VERSION_FIELD_NUMBER = 12; private ai.chalk.protos.chalk.graph.v1.VersionInfo version_; /** * <code>.chalk.graph.v1.VersionInfo version = 12 [json_name = "version"];</code> * @return Whether the version field is set. */ @java.lang.Override public boolean hasVersion() { return ((bitField0_ & 0x00000010) != 0); } /** * <code>.chalk.graph.v1.VersionInfo version = 12 [json_name = "version"];</code> * @return The version. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.VersionInfo getVersion() { return version_ == null ? ai.chalk.protos.chalk.graph.v1.VersionInfo.getDefaultInstance() : version_; } /** * <code>.chalk.graph.v1.VersionInfo version = 12 [json_name = "version"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.VersionInfoOrBuilder getVersionOrBuilder() { return version_ == null ? ai.chalk.protos.chalk.graph.v1.VersionInfo.getDefaultInstance() : version_; } public static final int WINDOW_INFO_FIELD_NUMBER = 13; private ai.chalk.protos.chalk.graph.v1.WindowInfo windowInfo_; /** * <code>.chalk.graph.v1.WindowInfo window_info = 13 [json_name = "windowInfo"];</code> * @return Whether the windowInfo field is set. */ @java.lang.Override public boolean hasWindowInfo() { return ((bitField0_ & 0x00000020) != 0); } /** * <code>.chalk.graph.v1.WindowInfo window_info = 13 [json_name = "windowInfo"];</code> * @return The windowInfo. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowInfo getWindowInfo() { return windowInfo_ == null ? ai.chalk.protos.chalk.graph.v1.WindowInfo.getDefaultInstance() : windowInfo_; } /** * <code>.chalk.graph.v1.WindowInfo window_info = 13 [json_name = "windowInfo"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowInfoOrBuilder getWindowInfoOrBuilder() { return windowInfo_ == null ? ai.chalk.protos.chalk.graph.v1.WindowInfo.getDefaultInstance() : windowInfo_; } public static final int DEFAULT_VALUE_FIELD_NUMBER = 14; private ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue_; /** * <code>.chalk.arrow.v1.ScalarValue default_value = 14 [json_name = "defaultValue"];</code> * @return Whether the defaultValue field is set. */ @java.lang.Override public boolean hasDefaultValue() { return ((bitField0_ & 0x00000040) != 0); } /** * <code>.chalk.arrow.v1.ScalarValue default_value = 14 [json_name = "defaultValue"];</code> * @return The defaultValue. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getDefaultValue() { return defaultValue_ == null ? ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance() : defaultValue_; } /** * <code>.chalk.arrow.v1.ScalarValue default_value = 14 [json_name = "defaultValue"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder getDefaultValueOrBuilder() { return defaultValue_ == null ? ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance() : defaultValue_; } public static final int TAGS_FIELD_NUMBER = 15; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int DESCRIPTION_FIELD_NUMBER = 16; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * <code>optional string description = 16 [json_name = "description"];</code> * @return Whether the description field is set. */ @java.lang.Override public boolean hasDescription() { return ((bitField0_ & 0x00000080) != 0); } /** * <code>optional string description = 16 [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; } } /** * <code>optional string description = 16 [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 OWNER_FIELD_NUMBER = 17; @SuppressWarnings("serial") private volatile java.lang.Object owner_ = ""; /** * <code>optional string owner = 17 [json_name = "owner"];</code> * @return Whether the owner field is set. */ @java.lang.Override public boolean hasOwner() { return ((bitField0_ & 0x00000100) != 0); } /** * <code>optional string owner = 17 [json_name = "owner"];</code> * @return The owner. */ @java.lang.Override public java.lang.String getOwner() { java.lang.Object ref = owner_; 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(); owner_ = s; return s; } } /** * <code>optional string owner = 17 [json_name = "owner"];</code> * @return The bytes for owner. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXPRESSION_FIELD_NUMBER = 18; private ai.chalk.protos.chalk.expression.v1.LogicalExprNode expression_; /** * <code>.chalk.expression.v1.LogicalExprNode expression = 18 [json_name = "expression"];</code> * @return Whether the expression field is set. */ @java.lang.Override public boolean hasExpression() { return ((bitField0_ & 0x00000200) != 0); } /** * <code>.chalk.expression.v1.LogicalExprNode expression = 18 [json_name = "expression"];</code> * @return The expression. */ @java.lang.Override public ai.chalk.protos.chalk.expression.v1.LogicalExprNode getExpression() { return expression_ == null ? ai.chalk.protos.chalk.expression.v1.LogicalExprNode.getDefaultInstance() : expression_; } /** * <code>.chalk.expression.v1.LogicalExprNode expression = 18 [json_name = "expression"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder getExpressionOrBuilder() { return expression_ == null ? ai.chalk.protos.chalk.expression.v1.LogicalExprNode.getDefaultInstance() : expression_; } public static final int VALIDATIONS_FIELD_NUMBER = 19; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureValidation> validations_; /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureValidation> getValidationsList() { return validations_; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder> getValidationsOrBuilderList() { return validations_; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ @java.lang.Override public int getValidationsCount() { return validations_.size(); } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureValidation getValidations(int index) { return validations_.get(index); } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder getValidationsOrBuilder( int index) { return validations_.get(index); } public static final int LAST_FOR_FIELD_NUMBER = 20; private ai.chalk.protos.chalk.graph.v1.FeatureReference lastFor_; /** * <code>.chalk.graph.v1.FeatureReference last_for = 20 [json_name = "lastFor"];</code> * @return Whether the lastFor field is set. */ @java.lang.Override public boolean hasLastFor() { return ((bitField0_ & 0x00000400) != 0); } /** * <code>.chalk.graph.v1.FeatureReference last_for = 20 [json_name = "lastFor"];</code> * @return The lastFor. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureReference getLastFor() { return lastFor_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : lastFor_; } /** * <code>.chalk.graph.v1.FeatureReference last_for = 20 [json_name = "lastFor"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getLastForOrBuilder() { return lastFor_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : lastFor_; } public static final int ETL_OFFLINE_TO_ONLINE_FIELD_NUMBER = 21; private boolean etlOfflineToOnline_ = false; /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>optional bool etl_offline_to_online = 21 [json_name = "etlOfflineToOnline"];</code> * @return Whether the etlOfflineToOnline field is set. */ @java.lang.Override public boolean hasEtlOfflineToOnline() { return ((bitField0_ & 0x00000800) != 0); } /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>optional bool etl_offline_to_online = 21 [json_name = "etlOfflineToOnline"];</code> * @return The etlOfflineToOnline. */ @java.lang.Override public boolean getEtlOfflineToOnline() { return etlOfflineToOnline_; } public static final int IS_DISTANCE_PSEUDOFEATURE_FIELD_NUMBER = 22; private boolean isDistancePseudofeature_ = false; /** * <code>bool is_distance_pseudofeature = 22 [json_name = "isDistancePseudofeature"];</code> * @return The isDistancePseudofeature. */ @java.lang.Override public boolean getIsDistancePseudofeature() { return isDistancePseudofeature_; } public static final int ATTRIBUTE_NAME_FIELD_NUMBER = 23; @SuppressWarnings("serial") private volatile java.lang.Object attributeName_ = ""; /** * <code>string attribute_name = 23 [json_name = "attributeName"];</code> * @return The attributeName. */ @java.lang.Override public java.lang.String getAttributeName() { java.lang.Object ref = attributeName_; 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(); attributeName_ = s; return s; } } /** * <code>string attribute_name = 23 [json_name = "attributeName"];</code> * @return The bytes for attributeName. */ @java.lang.Override public com.google.protobuf.ByteString getAttributeNameBytes() { java.lang.Object ref = attributeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attributeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IS_DEPRECATED_FIELD_NUMBER = 24; private boolean isDeprecated_ = false; /** * <pre> * Whether the user marked the feature as deprecated. * </pre> * * <code>bool is_deprecated = 24 [json_name = "isDeprecated"];</code> * @return The isDeprecated. */ @java.lang.Override public boolean getIsDeprecated() { return isDeprecated_; } public static final int CACHE_STRATEGY_FIELD_NUMBER = 25; private int cacheStrategy_ = 0; /** * <code>.chalk.graph.v1.CacheStrategy cache_strategy = 25 [json_name = "cacheStrategy"];</code> * @return The enum numeric value on the wire for cacheStrategy. */ @java.lang.Override public int getCacheStrategyValue() { return cacheStrategy_; } /** * <code>.chalk.graph.v1.CacheStrategy cache_strategy = 25 [json_name = "cacheStrategy"];</code> * @return The cacheStrategy. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.CacheStrategy getCacheStrategy() { ai.chalk.protos.chalk.graph.v1.CacheStrategy result = ai.chalk.protos.chalk.graph.v1.CacheStrategy.forNumber(cacheStrategy_); return result == null ? ai.chalk.protos.chalk.graph.v1.CacheStrategy.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); } if (isAutogenerated_ != false) { output.writeBool(3, isAutogenerated_); } if (noDisplay_ != false) { output.writeBool(4, noDisplay_); } if (isPrimary_ != false) { output.writeBool(5, isPrimary_); } if (isNullable_ != false) { output.writeBool(6, isNullable_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt64(7, internalVersion_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(8, getMaxStalenessDuration()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(10, getOfflineTtlDuration()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(11, getArrowType()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(12, getVersion()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(13, getWindowInfo()); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(14, getDefaultValue()); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, tags_.getRaw(i)); } if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, description_); } if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, owner_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(18, getExpression()); } for (int i = 0; i < validations_.size(); i++) { output.writeMessage(19, validations_.get(i)); } if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(20, getLastFor()); } if (((bitField0_ & 0x00000800) != 0)) { output.writeBool(21, etlOfflineToOnline_); } if (isDistancePseudofeature_ != false) { output.writeBool(22, isDistancePseudofeature_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 23, attributeName_); } if (isDeprecated_ != false) { output.writeBool(24, isDeprecated_); } if (cacheStrategy_ != ai.chalk.protos.chalk.graph.v1.CacheStrategy.CACHE_STRATEGY_UNSPECIFIED.getNumber()) { output.writeEnum(25, cacheStrategy_); } 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(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } if (isAutogenerated_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isAutogenerated_); } if (noDisplay_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, noDisplay_); } if (isPrimary_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isPrimary_); } if (isNullable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, isNullable_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, internalVersion_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getMaxStalenessDuration()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getOfflineTtlDuration()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getArrowType()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getVersion()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getWindowInfo()); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getDefaultValue()); } { int dataSize = 0; for (int i = 0; i < tags_.size(); i++) { dataSize += computeStringSizeNoTag(tags_.getRaw(i)); } size += dataSize; size += 1 * getTagsList().size(); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, description_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, owner_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getExpression()); } for (int i = 0; i < validations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, validations_.get(i)); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, getLastFor()); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(21, etlOfflineToOnline_); } if (isDistancePseudofeature_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(22, isDistancePseudofeature_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, attributeName_); } if (isDeprecated_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(24, isDeprecated_); } if (cacheStrategy_ != ai.chalk.protos.chalk.graph.v1.CacheStrategy.CACHE_STRATEGY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(25, cacheStrategy_); } 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.graph.v1.ScalarFeatureType)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.ScalarFeatureType other = (ai.chalk.protos.chalk.graph.v1.ScalarFeatureType) obj; if (!getName() .equals(other.getName())) return false; if (!getNamespace() .equals(other.getNamespace())) return false; if (getIsAutogenerated() != other.getIsAutogenerated()) return false; if (getNoDisplay() != other.getNoDisplay()) return false; if (getIsPrimary() != other.getIsPrimary()) return false; if (getIsNullable() != other.getIsNullable()) return false; if (hasInternalVersion() != other.hasInternalVersion()) return false; if (hasInternalVersion()) { if (getInternalVersion() != other.getInternalVersion()) return false; } if (hasMaxStalenessDuration() != other.hasMaxStalenessDuration()) return false; if (hasMaxStalenessDuration()) { if (!getMaxStalenessDuration() .equals(other.getMaxStalenessDuration())) return false; } if (hasOfflineTtlDuration() != other.hasOfflineTtlDuration()) return false; if (hasOfflineTtlDuration()) { if (!getOfflineTtlDuration() .equals(other.getOfflineTtlDuration())) return false; } if (hasArrowType() != other.hasArrowType()) return false; if (hasArrowType()) { if (!getArrowType() .equals(other.getArrowType())) return false; } if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { if (!getVersion() .equals(other.getVersion())) return false; } if (hasWindowInfo() != other.hasWindowInfo()) return false; if (hasWindowInfo()) { if (!getWindowInfo() .equals(other.getWindowInfo())) return false; } if (hasDefaultValue() != other.hasDefaultValue()) return false; if (hasDefaultValue()) { if (!getDefaultValue() .equals(other.getDefaultValue())) return false; } if (!getTagsList() .equals(other.getTagsList())) return false; if (hasDescription() != other.hasDescription()) return false; if (hasDescription()) { if (!getDescription() .equals(other.getDescription())) return false; } if (hasOwner() != other.hasOwner()) return false; if (hasOwner()) { if (!getOwner() .equals(other.getOwner())) return false; } if (hasExpression() != other.hasExpression()) return false; if (hasExpression()) { if (!getExpression() .equals(other.getExpression())) return false; } if (!getValidationsList() .equals(other.getValidationsList())) return false; if (hasLastFor() != other.hasLastFor()) return false; if (hasLastFor()) { if (!getLastFor() .equals(other.getLastFor())) return false; } if (hasEtlOfflineToOnline() != other.hasEtlOfflineToOnline()) return false; if (hasEtlOfflineToOnline()) { if (getEtlOfflineToOnline() != other.getEtlOfflineToOnline()) return false; } if (getIsDistancePseudofeature() != other.getIsDistancePseudofeature()) return false; if (!getAttributeName() .equals(other.getAttributeName())) return false; if (getIsDeprecated() != other.getIsDeprecated()) return false; if (cacheStrategy_ != other.cacheStrategy_) 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) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (37 * hash) + IS_AUTOGENERATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsAutogenerated()); hash = (37 * hash) + NO_DISPLAY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNoDisplay()); hash = (37 * hash) + IS_PRIMARY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsPrimary()); hash = (37 * hash) + IS_NULLABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsNullable()); if (hasInternalVersion()) { hash = (37 * hash) + INTERNAL_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInternalVersion()); } if (hasMaxStalenessDuration()) { hash = (37 * hash) + MAX_STALENESS_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMaxStalenessDuration().hashCode(); } if (hasOfflineTtlDuration()) { hash = (37 * hash) + OFFLINE_TTL_DURATION_FIELD_NUMBER; hash = (53 * hash) + getOfflineTtlDuration().hashCode(); } if (hasArrowType()) { hash = (37 * hash) + ARROW_TYPE_FIELD_NUMBER; hash = (53 * hash) + getArrowType().hashCode(); } if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); } if (hasWindowInfo()) { hash = (37 * hash) + WINDOW_INFO_FIELD_NUMBER; hash = (53 * hash) + getWindowInfo().hashCode(); } if (hasDefaultValue()) { hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDefaultValue().hashCode(); } if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } if (hasDescription()) { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); } if (hasOwner()) { hash = (37 * hash) + OWNER_FIELD_NUMBER; hash = (53 * hash) + getOwner().hashCode(); } if (hasExpression()) { hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getExpression().hashCode(); } if (getValidationsCount() > 0) { hash = (37 * hash) + VALIDATIONS_FIELD_NUMBER; hash = (53 * hash) + getValidationsList().hashCode(); } if (hasLastFor()) { hash = (37 * hash) + LAST_FOR_FIELD_NUMBER; hash = (53 * hash) + getLastFor().hashCode(); } if (hasEtlOfflineToOnline()) { hash = (37 * hash) + ETL_OFFLINE_TO_ONLINE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEtlOfflineToOnline()); } hash = (37 * hash) + IS_DISTANCE_PSEUDOFEATURE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsDistancePseudofeature()); hash = (37 * hash) + ATTRIBUTE_NAME_FIELD_NUMBER; hash = (53 * hash) + getAttributeName().hashCode(); hash = (37 * hash) + IS_DEPRECATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsDeprecated()); hash = (37 * hash) + CACHE_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + cacheStrategy_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.ScalarFeatureType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.ScalarFeatureType 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.graph.v1.ScalarFeatureType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.ScalarFeatureType 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.graph.v1.ScalarFeatureType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.ScalarFeatureType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.ScalarFeatureType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.ScalarFeatureType 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.graph.v1.ScalarFeatureType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.ScalarFeatureType 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.graph.v1.ScalarFeatureType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.ScalarFeatureType 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.graph.v1.ScalarFeatureType 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.graph.v1.ScalarFeatureType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.ScalarFeatureType) ai.chalk.protos.chalk.graph.v1.ScalarFeatureTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ScalarFeatureType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ScalarFeatureType_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.ScalarFeatureType.class, ai.chalk.protos.chalk.graph.v1.ScalarFeatureType.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.ScalarFeatureType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMaxStalenessDurationFieldBuilder(); getOfflineTtlDurationFieldBuilder(); getArrowTypeFieldBuilder(); getVersionFieldBuilder(); getWindowInfoFieldBuilder(); getDefaultValueFieldBuilder(); getExpressionFieldBuilder(); getValidationsFieldBuilder(); getLastForFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; namespace_ = ""; isAutogenerated_ = false; noDisplay_ = false; isPrimary_ = false; isNullable_ = false; internalVersion_ = 0L; maxStalenessDuration_ = null; if (maxStalenessDurationBuilder_ != null) { maxStalenessDurationBuilder_.dispose(); maxStalenessDurationBuilder_ = null; } offlineTtlDuration_ = null; if (offlineTtlDurationBuilder_ != null) { offlineTtlDurationBuilder_.dispose(); offlineTtlDurationBuilder_ = null; } arrowType_ = null; if (arrowTypeBuilder_ != null) { arrowTypeBuilder_.dispose(); arrowTypeBuilder_ = null; } version_ = null; if (versionBuilder_ != null) { versionBuilder_.dispose(); versionBuilder_ = null; } windowInfo_ = null; if (windowInfoBuilder_ != null) { windowInfoBuilder_.dispose(); windowInfoBuilder_ = null; } defaultValue_ = null; if (defaultValueBuilder_ != null) { defaultValueBuilder_.dispose(); defaultValueBuilder_ = null; } tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); description_ = ""; owner_ = ""; expression_ = null; if (expressionBuilder_ != null) { expressionBuilder_.dispose(); expressionBuilder_ = null; } if (validationsBuilder_ == null) { validations_ = java.util.Collections.emptyList(); } else { validations_ = null; validationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00020000); lastFor_ = null; if (lastForBuilder_ != null) { lastForBuilder_.dispose(); lastForBuilder_ = null; } etlOfflineToOnline_ = false; isDistancePseudofeature_ = false; attributeName_ = ""; isDeprecated_ = false; cacheStrategy_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_ScalarFeatureType_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ScalarFeatureType getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.ScalarFeatureType.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ScalarFeatureType build() { ai.chalk.protos.chalk.graph.v1.ScalarFeatureType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ScalarFeatureType buildPartial() { ai.chalk.protos.chalk.graph.v1.ScalarFeatureType result = new ai.chalk.protos.chalk.graph.v1.ScalarFeatureType(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.graph.v1.ScalarFeatureType result) { if (validationsBuilder_ == null) { if (((bitField0_ & 0x00020000) != 0)) { validations_ = java.util.Collections.unmodifiableList(validations_); bitField0_ = (bitField0_ & ~0x00020000); } result.validations_ = validations_; } else { result.validations_ = validationsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.ScalarFeatureType result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.namespace_ = namespace_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.isAutogenerated_ = isAutogenerated_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.noDisplay_ = noDisplay_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.isPrimary_ = isPrimary_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.isNullable_ = isNullable_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000040) != 0)) { result.internalVersion_ = internalVersion_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000080) != 0)) { result.maxStalenessDuration_ = maxStalenessDurationBuilder_ == null ? maxStalenessDuration_ : maxStalenessDurationBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { result.offlineTtlDuration_ = offlineTtlDurationBuilder_ == null ? offlineTtlDuration_ : offlineTtlDurationBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000200) != 0)) { result.arrowType_ = arrowTypeBuilder_ == null ? arrowType_ : arrowTypeBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000400) != 0)) { result.version_ = versionBuilder_ == null ? version_ : versionBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000800) != 0)) { result.windowInfo_ = windowInfoBuilder_ == null ? windowInfo_ : windowInfoBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00001000) != 0)) { result.defaultValue_ = defaultValueBuilder_ == null ? defaultValue_ : defaultValueBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00002000) != 0)) { tags_.makeImmutable(); result.tags_ = tags_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.description_ = description_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00008000) != 0)) { result.owner_ = owner_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00010000) != 0)) { result.expression_ = expressionBuilder_ == null ? expression_ : expressionBuilder_.build(); to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00040000) != 0)) { result.lastFor_ = lastForBuilder_ == null ? lastFor_ : lastForBuilder_.build(); to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00080000) != 0)) { result.etlOfflineToOnline_ = etlOfflineToOnline_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00100000) != 0)) { result.isDistancePseudofeature_ = isDistancePseudofeature_; } if (((from_bitField0_ & 0x00200000) != 0)) { result.attributeName_ = attributeName_; } if (((from_bitField0_ & 0x00400000) != 0)) { result.isDeprecated_ = isDeprecated_; } if (((from_bitField0_ & 0x00800000) != 0)) { result.cacheStrategy_ = cacheStrategy_; } 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.graph.v1.ScalarFeatureType) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.ScalarFeatureType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.ScalarFeatureType other) { if (other == ai.chalk.protos.chalk.graph.v1.ScalarFeatureType.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; bitField0_ |= 0x00000002; onChanged(); } if (other.getIsAutogenerated() != false) { setIsAutogenerated(other.getIsAutogenerated()); } if (other.getNoDisplay() != false) { setNoDisplay(other.getNoDisplay()); } if (other.getIsPrimary() != false) { setIsPrimary(other.getIsPrimary()); } if (other.getIsNullable() != false) { setIsNullable(other.getIsNullable()); } if (other.hasInternalVersion()) { setInternalVersion(other.getInternalVersion()); } if (other.hasMaxStalenessDuration()) { mergeMaxStalenessDuration(other.getMaxStalenessDuration()); } if (other.hasOfflineTtlDuration()) { mergeOfflineTtlDuration(other.getOfflineTtlDuration()); } if (other.hasArrowType()) { mergeArrowType(other.getArrowType()); } if (other.hasVersion()) { mergeVersion(other.getVersion()); } if (other.hasWindowInfo()) { mergeWindowInfo(other.getWindowInfo()); } if (other.hasDefaultValue()) { mergeDefaultValue(other.getDefaultValue()); } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ |= 0x00002000; } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } if (other.hasDescription()) { description_ = other.description_; bitField0_ |= 0x00004000; onChanged(); } if (other.hasOwner()) { owner_ = other.owner_; bitField0_ |= 0x00008000; onChanged(); } if (other.hasExpression()) { mergeExpression(other.getExpression()); } if (validationsBuilder_ == null) { if (!other.validations_.isEmpty()) { if (validations_.isEmpty()) { validations_ = other.validations_; bitField0_ = (bitField0_ & ~0x00020000); } else { ensureValidationsIsMutable(); validations_.addAll(other.validations_); } onChanged(); } } else { if (!other.validations_.isEmpty()) { if (validationsBuilder_.isEmpty()) { validationsBuilder_.dispose(); validationsBuilder_ = null; validations_ = other.validations_; bitField0_ = (bitField0_ & ~0x00020000); validationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValidationsFieldBuilder() : null; } else { validationsBuilder_.addAllMessages(other.validations_); } } } if (other.hasLastFor()) { mergeLastFor(other.getLastFor()); } if (other.hasEtlOfflineToOnline()) { setEtlOfflineToOnline(other.getEtlOfflineToOnline()); } if (other.getIsDistancePseudofeature() != false) { setIsDistancePseudofeature(other.getIsDistancePseudofeature()); } if (!other.getAttributeName().isEmpty()) { attributeName_ = other.attributeName_; bitField0_ |= 0x00200000; onChanged(); } if (other.getIsDeprecated() != false) { setIsDeprecated(other.getIsDeprecated()); } if (other.cacheStrategy_ != 0) { setCacheStrategyValue(other.getCacheStrategyValue()); } 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: { namespace_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { isAutogenerated_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { noDisplay_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { isPrimary_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { isNullable_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { internalVersion_ = input.readUInt64(); bitField0_ |= 0x00000040; break; } // case 56 case 66: { input.readMessage( getMaxStalenessDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 82: { input.readMessage( getOfflineTtlDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 82 case 90: { input.readMessage( getArrowTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 90 case 98: { input.readMessage( getVersionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 98 case 106: { input.readMessage( getWindowInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 106 case 114: { input.readMessage( getDefaultValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 114 case 122: { java.lang.String s = input.readStringRequireUtf8(); ensureTagsIsMutable(); tags_.add(s); break; } // case 122 case 130: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00004000; break; } // case 130 case 138: { owner_ = input.readStringRequireUtf8(); bitField0_ |= 0x00008000; break; } // case 138 case 146: { input.readMessage( getExpressionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00010000; break; } // case 146 case 154: { ai.chalk.protos.chalk.graph.v1.FeatureValidation m = input.readMessage( ai.chalk.protos.chalk.graph.v1.FeatureValidation.parser(), extensionRegistry); if (validationsBuilder_ == null) { ensureValidationsIsMutable(); validations_.add(m); } else { validationsBuilder_.addMessage(m); } break; } // case 154 case 162: { input.readMessage( getLastForFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00040000; break; } // case 162 case 168: { etlOfflineToOnline_ = input.readBool(); bitField0_ |= 0x00080000; break; } // case 168 case 176: { isDistancePseudofeature_ = input.readBool(); bitField0_ |= 0x00100000; break; } // case 176 case 186: { attributeName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00200000; break; } // case 186 case 192: { isDeprecated_ = input.readBool(); bitField0_ |= 0x00400000; break; } // case 192 case 200: { cacheStrategy_ = input.readEnum(); bitField0_ |= 0x00800000; break; } // case 200 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 namespace_ = ""; /** * <code>string namespace = 2 [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 = 2 [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 = 2 [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_ |= 0x00000002; onChanged(); return this; } /** * <code>string namespace = 2 [json_name = "namespace"];</code> * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string namespace = 2 [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_ |= 0x00000002; onChanged(); return this; } private boolean isAutogenerated_ ; /** * <code>bool is_autogenerated = 3 [json_name = "isAutogenerated"];</code> * @return The isAutogenerated. */ @java.lang.Override public boolean getIsAutogenerated() { return isAutogenerated_; } /** * <code>bool is_autogenerated = 3 [json_name = "isAutogenerated"];</code> * @param value The isAutogenerated to set. * @return This builder for chaining. */ public Builder setIsAutogenerated(boolean value) { isAutogenerated_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>bool is_autogenerated = 3 [json_name = "isAutogenerated"];</code> * @return This builder for chaining. */ public Builder clearIsAutogenerated() { bitField0_ = (bitField0_ & ~0x00000004); isAutogenerated_ = false; onChanged(); return this; } private boolean noDisplay_ ; /** * <code>bool no_display = 4 [json_name = "noDisplay"];</code> * @return The noDisplay. */ @java.lang.Override public boolean getNoDisplay() { return noDisplay_; } /** * <code>bool no_display = 4 [json_name = "noDisplay"];</code> * @param value The noDisplay to set. * @return This builder for chaining. */ public Builder setNoDisplay(boolean value) { noDisplay_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>bool no_display = 4 [json_name = "noDisplay"];</code> * @return This builder for chaining. */ public Builder clearNoDisplay() { bitField0_ = (bitField0_ & ~0x00000008); noDisplay_ = false; onChanged(); return this; } private boolean isPrimary_ ; /** * <code>bool is_primary = 5 [json_name = "isPrimary"];</code> * @return The isPrimary. */ @java.lang.Override public boolean getIsPrimary() { return isPrimary_; } /** * <code>bool is_primary = 5 [json_name = "isPrimary"];</code> * @param value The isPrimary to set. * @return This builder for chaining. */ public Builder setIsPrimary(boolean value) { isPrimary_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>bool is_primary = 5 [json_name = "isPrimary"];</code> * @return This builder for chaining. */ public Builder clearIsPrimary() { bitField0_ = (bitField0_ & ~0x00000010); isPrimary_ = false; onChanged(); return this; } private boolean isNullable_ ; /** * <code>bool is_nullable = 6 [json_name = "isNullable"];</code> * @return The isNullable. */ @java.lang.Override public boolean getIsNullable() { return isNullable_; } /** * <code>bool is_nullable = 6 [json_name = "isNullable"];</code> * @param value The isNullable to set. * @return This builder for chaining. */ public Builder setIsNullable(boolean value) { isNullable_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>bool is_nullable = 6 [json_name = "isNullable"];</code> * @return This builder for chaining. */ public Builder clearIsNullable() { bitField0_ = (bitField0_ & ~0x00000020); isNullable_ = false; onChanged(); return this; } private long internalVersion_ ; /** * <code>optional uint64 internal_version = 7 [json_name = "internalVersion"];</code> * @return Whether the internalVersion field is set. */ @java.lang.Override public boolean hasInternalVersion() { return ((bitField0_ & 0x00000040) != 0); } /** * <code>optional uint64 internal_version = 7 [json_name = "internalVersion"];</code> * @return The internalVersion. */ @java.lang.Override public long getInternalVersion() { return internalVersion_; } /** * <code>optional uint64 internal_version = 7 [json_name = "internalVersion"];</code> * @param value The internalVersion to set. * @return This builder for chaining. */ public Builder setInternalVersion(long value) { internalVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * <code>optional uint64 internal_version = 7 [json_name = "internalVersion"];</code> * @return This builder for chaining. */ public Builder clearInternalVersion() { bitField0_ = (bitField0_ & ~0x00000040); internalVersion_ = 0L; onChanged(); return this; } private com.google.protobuf.Duration maxStalenessDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxStalenessDurationBuilder_; /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>.google.protobuf.Duration max_staleness_duration = 8 [json_name = "maxStalenessDuration"];</code> * @return Whether the maxStalenessDuration field is set. */ public boolean hasMaxStalenessDuration() { return ((bitField0_ & 0x00000080) != 0); } /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>.google.protobuf.Duration max_staleness_duration = 8 [json_name = "maxStalenessDuration"];</code> * @return The maxStalenessDuration. */ public com.google.protobuf.Duration getMaxStalenessDuration() { if (maxStalenessDurationBuilder_ == null) { return maxStalenessDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxStalenessDuration_; } else { return maxStalenessDurationBuilder_.getMessage(); } } /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>.google.protobuf.Duration max_staleness_duration = 8 [json_name = "maxStalenessDuration"];</code> */ public Builder setMaxStalenessDuration(com.google.protobuf.Duration value) { if (maxStalenessDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxStalenessDuration_ = value; } else { maxStalenessDurationBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>.google.protobuf.Duration max_staleness_duration = 8 [json_name = "maxStalenessDuration"];</code> */ public Builder setMaxStalenessDuration( com.google.protobuf.Duration.Builder builderForValue) { if (maxStalenessDurationBuilder_ == null) { maxStalenessDuration_ = builderForValue.build(); } else { maxStalenessDurationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>.google.protobuf.Duration max_staleness_duration = 8 [json_name = "maxStalenessDuration"];</code> */ public Builder mergeMaxStalenessDuration(com.google.protobuf.Duration value) { if (maxStalenessDurationBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && maxStalenessDuration_ != null && maxStalenessDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxStalenessDurationBuilder().mergeFrom(value); } else { maxStalenessDuration_ = value; } } else { maxStalenessDurationBuilder_.mergeFrom(value); } if (maxStalenessDuration_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>.google.protobuf.Duration max_staleness_duration = 8 [json_name = "maxStalenessDuration"];</code> */ public Builder clearMaxStalenessDuration() { bitField0_ = (bitField0_ & ~0x00000080); maxStalenessDuration_ = null; if (maxStalenessDurationBuilder_ != null) { maxStalenessDurationBuilder_.dispose(); maxStalenessDurationBuilder_ = null; } onChanged(); return this; } /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>.google.protobuf.Duration max_staleness_duration = 8 [json_name = "maxStalenessDuration"];</code> */ public com.google.protobuf.Duration.Builder getMaxStalenessDurationBuilder() { bitField0_ |= 0x00000080; onChanged(); return getMaxStalenessDurationFieldBuilder().getBuilder(); } /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>.google.protobuf.Duration max_staleness_duration = 8 [json_name = "maxStalenessDuration"];</code> */ public com.google.protobuf.DurationOrBuilder getMaxStalenessDurationOrBuilder() { if (maxStalenessDurationBuilder_ != null) { return maxStalenessDurationBuilder_.getMessageOrBuilder(); } else { return maxStalenessDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxStalenessDuration_; } } /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>.google.protobuf.Duration max_staleness_duration = 8 [json_name = "maxStalenessDuration"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxStalenessDurationFieldBuilder() { if (maxStalenessDurationBuilder_ == null) { maxStalenessDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxStalenessDuration(), getParentForChildren(), isClean()); maxStalenessDuration_ = null; } return maxStalenessDurationBuilder_; } private com.google.protobuf.Duration offlineTtlDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> offlineTtlDurationBuilder_; /** * <code>.google.protobuf.Duration offline_ttl_duration = 10 [json_name = "offlineTtlDuration"];</code> * @return Whether the offlineTtlDuration field is set. */ public boolean hasOfflineTtlDuration() { return ((bitField0_ & 0x00000100) != 0); } /** * <code>.google.protobuf.Duration offline_ttl_duration = 10 [json_name = "offlineTtlDuration"];</code> * @return The offlineTtlDuration. */ public com.google.protobuf.Duration getOfflineTtlDuration() { if (offlineTtlDurationBuilder_ == null) { return offlineTtlDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : offlineTtlDuration_; } else { return offlineTtlDurationBuilder_.getMessage(); } } /** * <code>.google.protobuf.Duration offline_ttl_duration = 10 [json_name = "offlineTtlDuration"];</code> */ public Builder setOfflineTtlDuration(com.google.protobuf.Duration value) { if (offlineTtlDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } offlineTtlDuration_ = value; } else { offlineTtlDurationBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * <code>.google.protobuf.Duration offline_ttl_duration = 10 [json_name = "offlineTtlDuration"];</code> */ public Builder setOfflineTtlDuration( com.google.protobuf.Duration.Builder builderForValue) { if (offlineTtlDurationBuilder_ == null) { offlineTtlDuration_ = builderForValue.build(); } else { offlineTtlDurationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * <code>.google.protobuf.Duration offline_ttl_duration = 10 [json_name = "offlineTtlDuration"];</code> */ public Builder mergeOfflineTtlDuration(com.google.protobuf.Duration value) { if (offlineTtlDurationBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && offlineTtlDuration_ != null && offlineTtlDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getOfflineTtlDurationBuilder().mergeFrom(value); } else { offlineTtlDuration_ = value; } } else { offlineTtlDurationBuilder_.mergeFrom(value); } if (offlineTtlDuration_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * <code>.google.protobuf.Duration offline_ttl_duration = 10 [json_name = "offlineTtlDuration"];</code> */ public Builder clearOfflineTtlDuration() { bitField0_ = (bitField0_ & ~0x00000100); offlineTtlDuration_ = null; if (offlineTtlDurationBuilder_ != null) { offlineTtlDurationBuilder_.dispose(); offlineTtlDurationBuilder_ = null; } onChanged(); return this; } /** * <code>.google.protobuf.Duration offline_ttl_duration = 10 [json_name = "offlineTtlDuration"];</code> */ public com.google.protobuf.Duration.Builder getOfflineTtlDurationBuilder() { bitField0_ |= 0x00000100; onChanged(); return getOfflineTtlDurationFieldBuilder().getBuilder(); } /** * <code>.google.protobuf.Duration offline_ttl_duration = 10 [json_name = "offlineTtlDuration"];</code> */ public com.google.protobuf.DurationOrBuilder getOfflineTtlDurationOrBuilder() { if (offlineTtlDurationBuilder_ != null) { return offlineTtlDurationBuilder_.getMessageOrBuilder(); } else { return offlineTtlDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : offlineTtlDuration_; } } /** * <code>.google.protobuf.Duration offline_ttl_duration = 10 [json_name = "offlineTtlDuration"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getOfflineTtlDurationFieldBuilder() { if (offlineTtlDurationBuilder_ == null) { offlineTtlDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getOfflineTtlDuration(), getParentForChildren(), isClean()); offlineTtlDuration_ = null; } return offlineTtlDurationBuilder_; } private ai.chalk.protos.chalk.arrow.v1.ArrowType arrowType_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> arrowTypeBuilder_; /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 11 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ public boolean hasArrowType() { return ((bitField0_ & 0x00000200) != 0); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 11 [json_name = "arrowType"];</code> * @return The arrowType. */ public ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType() { if (arrowTypeBuilder_ == null) { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } else { return arrowTypeBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 11 [json_name = "arrowType"];</code> */ public Builder setArrowType(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (arrowTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowType_ = value; } else { arrowTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 11 [json_name = "arrowType"];</code> */ public Builder setArrowType( ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder builderForValue) { if (arrowTypeBuilder_ == null) { arrowType_ = builderForValue.build(); } else { arrowTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 11 [json_name = "arrowType"];</code> */ public Builder mergeArrowType(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (arrowTypeBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && arrowType_ != null && arrowType_ != ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance()) { getArrowTypeBuilder().mergeFrom(value); } else { arrowType_ = value; } } else { arrowTypeBuilder_.mergeFrom(value); } if (arrowType_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 11 [json_name = "arrowType"];</code> */ public Builder clearArrowType() { bitField0_ = (bitField0_ & ~0x00000200); arrowType_ = null; if (arrowTypeBuilder_ != null) { arrowTypeBuilder_.dispose(); arrowTypeBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 11 [json_name = "arrowType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder getArrowTypeBuilder() { bitField0_ |= 0x00000200; onChanged(); return getArrowTypeFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 11 [json_name = "arrowType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder() { if (arrowTypeBuilder_ != null) { return arrowTypeBuilder_.getMessageOrBuilder(); } else { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 11 [json_name = "arrowType"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> getArrowTypeFieldBuilder() { if (arrowTypeBuilder_ == null) { arrowTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder>( getArrowType(), getParentForChildren(), isClean()); arrowType_ = null; } return arrowTypeBuilder_; } private ai.chalk.protos.chalk.graph.v1.VersionInfo version_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.VersionInfo, ai.chalk.protos.chalk.graph.v1.VersionInfo.Builder, ai.chalk.protos.chalk.graph.v1.VersionInfoOrBuilder> versionBuilder_; /** * <code>.chalk.graph.v1.VersionInfo version = 12 [json_name = "version"];</code> * @return Whether the version field is set. */ public boolean hasVersion() { return ((bitField0_ & 0x00000400) != 0); } /** * <code>.chalk.graph.v1.VersionInfo version = 12 [json_name = "version"];</code> * @return The version. */ public ai.chalk.protos.chalk.graph.v1.VersionInfo getVersion() { if (versionBuilder_ == null) { return version_ == null ? ai.chalk.protos.chalk.graph.v1.VersionInfo.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** * <code>.chalk.graph.v1.VersionInfo version = 12 [json_name = "version"];</code> */ public Builder setVersion(ai.chalk.protos.chalk.graph.v1.VersionInfo value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } version_ = value; } else { versionBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * <code>.chalk.graph.v1.VersionInfo version = 12 [json_name = "version"];</code> */ public Builder setVersion( ai.chalk.protos.chalk.graph.v1.VersionInfo.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); } else { versionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * <code>.chalk.graph.v1.VersionInfo version = 12 [json_name = "version"];</code> */ public Builder mergeVersion(ai.chalk.protos.chalk.graph.v1.VersionInfo value) { if (versionBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && version_ != null && version_ != ai.chalk.protos.chalk.graph.v1.VersionInfo.getDefaultInstance()) { getVersionBuilder().mergeFrom(value); } else { version_ = value; } } else { versionBuilder_.mergeFrom(value); } if (version_ != null) { bitField0_ |= 0x00000400; onChanged(); } return this; } /** * <code>.chalk.graph.v1.VersionInfo version = 12 [json_name = "version"];</code> */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000400); version_ = null; if (versionBuilder_ != null) { versionBuilder_.dispose(); versionBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.graph.v1.VersionInfo version = 12 [json_name = "version"];</code> */ public ai.chalk.protos.chalk.graph.v1.VersionInfo.Builder getVersionBuilder() { bitField0_ |= 0x00000400; onChanged(); return getVersionFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.VersionInfo version = 12 [json_name = "version"];</code> */ public ai.chalk.protos.chalk.graph.v1.VersionInfoOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { return version_ == null ? ai.chalk.protos.chalk.graph.v1.VersionInfo.getDefaultInstance() : version_; } } /** * <code>.chalk.graph.v1.VersionInfo version = 12 [json_name = "version"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.VersionInfo, ai.chalk.protos.chalk.graph.v1.VersionInfo.Builder, ai.chalk.protos.chalk.graph.v1.VersionInfoOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.VersionInfo, ai.chalk.protos.chalk.graph.v1.VersionInfo.Builder, ai.chalk.protos.chalk.graph.v1.VersionInfoOrBuilder>( getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } private ai.chalk.protos.chalk.graph.v1.WindowInfo windowInfo_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.WindowInfo, ai.chalk.protos.chalk.graph.v1.WindowInfo.Builder, ai.chalk.protos.chalk.graph.v1.WindowInfoOrBuilder> windowInfoBuilder_; /** * <code>.chalk.graph.v1.WindowInfo window_info = 13 [json_name = "windowInfo"];</code> * @return Whether the windowInfo field is set. */ public boolean hasWindowInfo() { return ((bitField0_ & 0x00000800) != 0); } /** * <code>.chalk.graph.v1.WindowInfo window_info = 13 [json_name = "windowInfo"];</code> * @return The windowInfo. */ public ai.chalk.protos.chalk.graph.v1.WindowInfo getWindowInfo() { if (windowInfoBuilder_ == null) { return windowInfo_ == null ? ai.chalk.protos.chalk.graph.v1.WindowInfo.getDefaultInstance() : windowInfo_; } else { return windowInfoBuilder_.getMessage(); } } /** * <code>.chalk.graph.v1.WindowInfo window_info = 13 [json_name = "windowInfo"];</code> */ public Builder setWindowInfo(ai.chalk.protos.chalk.graph.v1.WindowInfo value) { if (windowInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } windowInfo_ = value; } else { windowInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * <code>.chalk.graph.v1.WindowInfo window_info = 13 [json_name = "windowInfo"];</code> */ public Builder setWindowInfo( ai.chalk.protos.chalk.graph.v1.WindowInfo.Builder builderForValue) { if (windowInfoBuilder_ == null) { windowInfo_ = builderForValue.build(); } else { windowInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * <code>.chalk.graph.v1.WindowInfo window_info = 13 [json_name = "windowInfo"];</code> */ public Builder mergeWindowInfo(ai.chalk.protos.chalk.graph.v1.WindowInfo value) { if (windowInfoBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && windowInfo_ != null && windowInfo_ != ai.chalk.protos.chalk.graph.v1.WindowInfo.getDefaultInstance()) { getWindowInfoBuilder().mergeFrom(value); } else { windowInfo_ = value; } } else { windowInfoBuilder_.mergeFrom(value); } if (windowInfo_ != null) { bitField0_ |= 0x00000800; onChanged(); } return this; } /** * <code>.chalk.graph.v1.WindowInfo window_info = 13 [json_name = "windowInfo"];</code> */ public Builder clearWindowInfo() { bitField0_ = (bitField0_ & ~0x00000800); windowInfo_ = null; if (windowInfoBuilder_ != null) { windowInfoBuilder_.dispose(); windowInfoBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.graph.v1.WindowInfo window_info = 13 [json_name = "windowInfo"];</code> */ public ai.chalk.protos.chalk.graph.v1.WindowInfo.Builder getWindowInfoBuilder() { bitField0_ |= 0x00000800; onChanged(); return getWindowInfoFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.WindowInfo window_info = 13 [json_name = "windowInfo"];</code> */ public ai.chalk.protos.chalk.graph.v1.WindowInfoOrBuilder getWindowInfoOrBuilder() { if (windowInfoBuilder_ != null) { return windowInfoBuilder_.getMessageOrBuilder(); } else { return windowInfo_ == null ? ai.chalk.protos.chalk.graph.v1.WindowInfo.getDefaultInstance() : windowInfo_; } } /** * <code>.chalk.graph.v1.WindowInfo window_info = 13 [json_name = "windowInfo"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.WindowInfo, ai.chalk.protos.chalk.graph.v1.WindowInfo.Builder, ai.chalk.protos.chalk.graph.v1.WindowInfoOrBuilder> getWindowInfoFieldBuilder() { if (windowInfoBuilder_ == null) { windowInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.WindowInfo, ai.chalk.protos.chalk.graph.v1.WindowInfo.Builder, ai.chalk.protos.chalk.graph.v1.WindowInfoOrBuilder>( getWindowInfo(), getParentForChildren(), isClean()); windowInfo_ = null; } return windowInfoBuilder_; } private ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> defaultValueBuilder_; /** * <code>.chalk.arrow.v1.ScalarValue default_value = 14 [json_name = "defaultValue"];</code> * @return Whether the defaultValue field is set. */ public boolean hasDefaultValue() { return ((bitField0_ & 0x00001000) != 0); } /** * <code>.chalk.arrow.v1.ScalarValue default_value = 14 [json_name = "defaultValue"];</code> * @return The defaultValue. */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue getDefaultValue() { if (defaultValueBuilder_ == null) { return defaultValue_ == null ? ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance() : defaultValue_; } else { return defaultValueBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.ScalarValue default_value = 14 [json_name = "defaultValue"];</code> */ public Builder setDefaultValue(ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (defaultValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } defaultValue_ = value; } else { defaultValueBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ScalarValue default_value = 14 [json_name = "defaultValue"];</code> */ public Builder setDefaultValue( ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder builderForValue) { if (defaultValueBuilder_ == null) { defaultValue_ = builderForValue.build(); } else { defaultValueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ScalarValue default_value = 14 [json_name = "defaultValue"];</code> */ public Builder mergeDefaultValue(ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (defaultValueBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && defaultValue_ != null && defaultValue_ != ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance()) { getDefaultValueBuilder().mergeFrom(value); } else { defaultValue_ = value; } } else { defaultValueBuilder_.mergeFrom(value); } if (defaultValue_ != null) { bitField0_ |= 0x00001000; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.ScalarValue default_value = 14 [json_name = "defaultValue"];</code> */ public Builder clearDefaultValue() { bitField0_ = (bitField0_ & ~0x00001000); defaultValue_ = null; if (defaultValueBuilder_ != null) { defaultValueBuilder_.dispose(); defaultValueBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.ScalarValue default_value = 14 [json_name = "defaultValue"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder getDefaultValueBuilder() { bitField0_ |= 0x00001000; onChanged(); return getDefaultValueFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ScalarValue default_value = 14 [json_name = "defaultValue"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder getDefaultValueOrBuilder() { if (defaultValueBuilder_ != null) { return defaultValueBuilder_.getMessageOrBuilder(); } else { return defaultValue_ == null ? ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance() : defaultValue_; } } /** * <code>.chalk.arrow.v1.ScalarValue default_value = 14 [json_name = "defaultValue"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> getDefaultValueFieldBuilder() { if (defaultValueBuilder_ == null) { defaultValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder>( getDefaultValue(), getParentForChildren(), isClean()); defaultValue_ = null; } return defaultValueBuilder_; } private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); } bitField0_ |= 0x00002000; } /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { tags_.makeImmutable(); return tags_; } /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); bitField0_ |= 0x00002000; onChanged(); return this; } /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @param value The tags to add. * @return This builder for chaining. */ public Builder addTags( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00002000; onChanged(); return this; } /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @param values The tags to add. * @return This builder for chaining. */ public Builder addAllTags( java.lang.Iterable<java.lang.String> values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tags_); bitField0_ |= 0x00002000; onChanged(); return this; } /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @return This builder for chaining. */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00002000);; onChanged(); return this; } /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @param value The bytes of the tags to add. * @return This builder for chaining. */ public Builder addTagsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00002000; onChanged(); return this; } private java.lang.Object description_ = ""; /** * <code>optional string description = 16 [json_name = "description"];</code> * @return Whether the description field is set. */ public boolean hasDescription() { return ((bitField0_ & 0x00004000) != 0); } /** * <code>optional string description = 16 [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; } } /** * <code>optional string description = 16 [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; } } /** * <code>optional string description = 16 [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_ |= 0x00004000; onChanged(); return this; } /** * <code>optional string description = 16 [json_name = "description"];</code> * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } /** * <code>optional string description = 16 [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_ |= 0x00004000; onChanged(); return this; } private java.lang.Object owner_ = ""; /** * <code>optional string owner = 17 [json_name = "owner"];</code> * @return Whether the owner field is set. */ public boolean hasOwner() { return ((bitField0_ & 0x00008000) != 0); } /** * <code>optional string owner = 17 [json_name = "owner"];</code> * @return The owner. */ public java.lang.String getOwner() { java.lang.Object ref = owner_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); owner_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string owner = 17 [json_name = "owner"];</code> * @return The bytes for owner. */ public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string owner = 17 [json_name = "owner"];</code> * @param value The owner to set. * @return This builder for chaining. */ public Builder setOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } owner_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** * <code>optional string owner = 17 [json_name = "owner"];</code> * @return This builder for chaining. */ public Builder clearOwner() { owner_ = getDefaultInstance().getOwner(); bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } /** * <code>optional string owner = 17 [json_name = "owner"];</code> * @param value The bytes for owner to set. * @return This builder for chaining. */ public Builder setOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); owner_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } private ai.chalk.protos.chalk.expression.v1.LogicalExprNode expression_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.expression.v1.LogicalExprNode, ai.chalk.protos.chalk.expression.v1.LogicalExprNode.Builder, ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder> expressionBuilder_; /** * <code>.chalk.expression.v1.LogicalExprNode expression = 18 [json_name = "expression"];</code> * @return Whether the expression field is set. */ public boolean hasExpression() { return ((bitField0_ & 0x00010000) != 0); } /** * <code>.chalk.expression.v1.LogicalExprNode expression = 18 [json_name = "expression"];</code> * @return The expression. */ public ai.chalk.protos.chalk.expression.v1.LogicalExprNode getExpression() { if (expressionBuilder_ == null) { return expression_ == null ? ai.chalk.protos.chalk.expression.v1.LogicalExprNode.getDefaultInstance() : expression_; } else { return expressionBuilder_.getMessage(); } } /** * <code>.chalk.expression.v1.LogicalExprNode expression = 18 [json_name = "expression"];</code> */ public Builder setExpression(ai.chalk.protos.chalk.expression.v1.LogicalExprNode value) { if (expressionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expression_ = value; } else { expressionBuilder_.setMessage(value); } bitField0_ |= 0x00010000; onChanged(); return this; } /** * <code>.chalk.expression.v1.LogicalExprNode expression = 18 [json_name = "expression"];</code> */ public Builder setExpression( ai.chalk.protos.chalk.expression.v1.LogicalExprNode.Builder builderForValue) { if (expressionBuilder_ == null) { expression_ = builderForValue.build(); } else { expressionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; onChanged(); return this; } /** * <code>.chalk.expression.v1.LogicalExprNode expression = 18 [json_name = "expression"];</code> */ public Builder mergeExpression(ai.chalk.protos.chalk.expression.v1.LogicalExprNode value) { if (expressionBuilder_ == null) { if (((bitField0_ & 0x00010000) != 0) && expression_ != null && expression_ != ai.chalk.protos.chalk.expression.v1.LogicalExprNode.getDefaultInstance()) { getExpressionBuilder().mergeFrom(value); } else { expression_ = value; } } else { expressionBuilder_.mergeFrom(value); } if (expression_ != null) { bitField0_ |= 0x00010000; onChanged(); } return this; } /** * <code>.chalk.expression.v1.LogicalExprNode expression = 18 [json_name = "expression"];</code> */ public Builder clearExpression() { bitField0_ = (bitField0_ & ~0x00010000); expression_ = null; if (expressionBuilder_ != null) { expressionBuilder_.dispose(); expressionBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.expression.v1.LogicalExprNode expression = 18 [json_name = "expression"];</code> */ public ai.chalk.protos.chalk.expression.v1.LogicalExprNode.Builder getExpressionBuilder() { bitField0_ |= 0x00010000; onChanged(); return getExpressionFieldBuilder().getBuilder(); } /** * <code>.chalk.expression.v1.LogicalExprNode expression = 18 [json_name = "expression"];</code> */ public ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder getExpressionOrBuilder() { if (expressionBuilder_ != null) { return expressionBuilder_.getMessageOrBuilder(); } else { return expression_ == null ? ai.chalk.protos.chalk.expression.v1.LogicalExprNode.getDefaultInstance() : expression_; } } /** * <code>.chalk.expression.v1.LogicalExprNode expression = 18 [json_name = "expression"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.expression.v1.LogicalExprNode, ai.chalk.protos.chalk.expression.v1.LogicalExprNode.Builder, ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder> getExpressionFieldBuilder() { if (expressionBuilder_ == null) { expressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.expression.v1.LogicalExprNode, ai.chalk.protos.chalk.expression.v1.LogicalExprNode.Builder, ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder>( getExpression(), getParentForChildren(), isClean()); expression_ = null; } return expressionBuilder_; } private java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureValidation> validations_ = java.util.Collections.emptyList(); private void ensureValidationsIsMutable() { if (!((bitField0_ & 0x00020000) != 0)) { validations_ = new java.util.ArrayList<ai.chalk.protos.chalk.graph.v1.FeatureValidation>(validations_); bitField0_ |= 0x00020000; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureValidation, ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder, ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder> validationsBuilder_; /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureValidation> getValidationsList() { if (validationsBuilder_ == null) { return java.util.Collections.unmodifiableList(validations_); } else { return validationsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public int getValidationsCount() { if (validationsBuilder_ == null) { return validations_.size(); } else { return validationsBuilder_.getCount(); } } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureValidation getValidations(int index) { if (validationsBuilder_ == null) { return validations_.get(index); } else { return validationsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public Builder setValidations( int index, ai.chalk.protos.chalk.graph.v1.FeatureValidation value) { if (validationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidationsIsMutable(); validations_.set(index, value); onChanged(); } else { validationsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public Builder setValidations( int index, ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder builderForValue) { if (validationsBuilder_ == null) { ensureValidationsIsMutable(); validations_.set(index, builderForValue.build()); onChanged(); } else { validationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public Builder addValidations(ai.chalk.protos.chalk.graph.v1.FeatureValidation value) { if (validationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidationsIsMutable(); validations_.add(value); onChanged(); } else { validationsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public Builder addValidations( int index, ai.chalk.protos.chalk.graph.v1.FeatureValidation value) { if (validationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidationsIsMutable(); validations_.add(index, value); onChanged(); } else { validationsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public Builder addValidations( ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder builderForValue) { if (validationsBuilder_ == null) { ensureValidationsIsMutable(); validations_.add(builderForValue.build()); onChanged(); } else { validationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public Builder addValidations( int index, ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder builderForValue) { if (validationsBuilder_ == null) { ensureValidationsIsMutable(); validations_.add(index, builderForValue.build()); onChanged(); } else { validationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public Builder addAllValidations( java.lang.Iterable<? extends ai.chalk.protos.chalk.graph.v1.FeatureValidation> values) { if (validationsBuilder_ == null) { ensureValidationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, validations_); onChanged(); } else { validationsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public Builder clearValidations() { if (validationsBuilder_ == null) { validations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00020000); onChanged(); } else { validationsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public Builder removeValidations(int index) { if (validationsBuilder_ == null) { ensureValidationsIsMutable(); validations_.remove(index); onChanged(); } else { validationsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder getValidationsBuilder( int index) { return getValidationsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder getValidationsOrBuilder( int index) { if (validationsBuilder_ == null) { return validations_.get(index); } else { return validationsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder> getValidationsOrBuilderList() { if (validationsBuilder_ != null) { return validationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(validations_); } } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder addValidationsBuilder() { return getValidationsFieldBuilder().addBuilder( ai.chalk.protos.chalk.graph.v1.FeatureValidation.getDefaultInstance()); } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder addValidationsBuilder( int index) { return getValidationsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.graph.v1.FeatureValidation.getDefaultInstance()); } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ public java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder> getValidationsBuilderList() { return getValidationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureValidation, ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder, ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder> getValidationsFieldBuilder() { if (validationsBuilder_ == null) { validationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureValidation, ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder, ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder>( validations_, ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean()); validations_ = null; } return validationsBuilder_; } private ai.chalk.protos.chalk.graph.v1.FeatureReference lastFor_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder> lastForBuilder_; /** * <code>.chalk.graph.v1.FeatureReference last_for = 20 [json_name = "lastFor"];</code> * @return Whether the lastFor field is set. */ public boolean hasLastFor() { return ((bitField0_ & 0x00040000) != 0); } /** * <code>.chalk.graph.v1.FeatureReference last_for = 20 [json_name = "lastFor"];</code> * @return The lastFor. */ public ai.chalk.protos.chalk.graph.v1.FeatureReference getLastFor() { if (lastForBuilder_ == null) { return lastFor_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : lastFor_; } else { return lastForBuilder_.getMessage(); } } /** * <code>.chalk.graph.v1.FeatureReference last_for = 20 [json_name = "lastFor"];</code> */ public Builder setLastFor(ai.chalk.protos.chalk.graph.v1.FeatureReference value) { if (lastForBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastFor_ = value; } else { lastForBuilder_.setMessage(value); } bitField0_ |= 0x00040000; onChanged(); return this; } /** * <code>.chalk.graph.v1.FeatureReference last_for = 20 [json_name = "lastFor"];</code> */ public Builder setLastFor( ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder builderForValue) { if (lastForBuilder_ == null) { lastFor_ = builderForValue.build(); } else { lastForBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00040000; onChanged(); return this; } /** * <code>.chalk.graph.v1.FeatureReference last_for = 20 [json_name = "lastFor"];</code> */ public Builder mergeLastFor(ai.chalk.protos.chalk.graph.v1.FeatureReference value) { if (lastForBuilder_ == null) { if (((bitField0_ & 0x00040000) != 0) && lastFor_ != null && lastFor_ != ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance()) { getLastForBuilder().mergeFrom(value); } else { lastFor_ = value; } } else { lastForBuilder_.mergeFrom(value); } if (lastFor_ != null) { bitField0_ |= 0x00040000; onChanged(); } return this; } /** * <code>.chalk.graph.v1.FeatureReference last_for = 20 [json_name = "lastFor"];</code> */ public Builder clearLastFor() { bitField0_ = (bitField0_ & ~0x00040000); lastFor_ = null; if (lastForBuilder_ != null) { lastForBuilder_.dispose(); lastForBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.graph.v1.FeatureReference last_for = 20 [json_name = "lastFor"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder getLastForBuilder() { bitField0_ |= 0x00040000; onChanged(); return getLastForFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.FeatureReference last_for = 20 [json_name = "lastFor"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getLastForOrBuilder() { if (lastForBuilder_ != null) { return lastForBuilder_.getMessageOrBuilder(); } else { return lastFor_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : lastFor_; } } /** * <code>.chalk.graph.v1.FeatureReference last_for = 20 [json_name = "lastFor"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder> getLastForFieldBuilder() { if (lastForBuilder_ == null) { lastForBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder>( getLastFor(), getParentForChildren(), isClean()); lastFor_ = null; } return lastForBuilder_; } private boolean etlOfflineToOnline_ ; /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>optional bool etl_offline_to_online = 21 [json_name = "etlOfflineToOnline"];</code> * @return Whether the etlOfflineToOnline field is set. */ @java.lang.Override public boolean hasEtlOfflineToOnline() { return ((bitField0_ & 0x00080000) != 0); } /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>optional bool etl_offline_to_online = 21 [json_name = "etlOfflineToOnline"];</code> * @return The etlOfflineToOnline. */ @java.lang.Override public boolean getEtlOfflineToOnline() { return etlOfflineToOnline_; } /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>optional bool etl_offline_to_online = 21 [json_name = "etlOfflineToOnline"];</code> * @param value The etlOfflineToOnline to set. * @return This builder for chaining. */ public Builder setEtlOfflineToOnline(boolean value) { etlOfflineToOnline_ = value; bitField0_ |= 0x00080000; onChanged(); return this; } /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>optional bool etl_offline_to_online = 21 [json_name = "etlOfflineToOnline"];</code> * @return This builder for chaining. */ public Builder clearEtlOfflineToOnline() { bitField0_ = (bitField0_ & ~0x00080000); etlOfflineToOnline_ = false; onChanged(); return this; } private boolean isDistancePseudofeature_ ; /** * <code>bool is_distance_pseudofeature = 22 [json_name = "isDistancePseudofeature"];</code> * @return The isDistancePseudofeature. */ @java.lang.Override public boolean getIsDistancePseudofeature() { return isDistancePseudofeature_; } /** * <code>bool is_distance_pseudofeature = 22 [json_name = "isDistancePseudofeature"];</code> * @param value The isDistancePseudofeature to set. * @return This builder for chaining. */ public Builder setIsDistancePseudofeature(boolean value) { isDistancePseudofeature_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** * <code>bool is_distance_pseudofeature = 22 [json_name = "isDistancePseudofeature"];</code> * @return This builder for chaining. */ public Builder clearIsDistancePseudofeature() { bitField0_ = (bitField0_ & ~0x00100000); isDistancePseudofeature_ = false; onChanged(); return this; } private java.lang.Object attributeName_ = ""; /** * <code>string attribute_name = 23 [json_name = "attributeName"];</code> * @return The attributeName. */ public java.lang.String getAttributeName() { java.lang.Object ref = attributeName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributeName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string attribute_name = 23 [json_name = "attributeName"];</code> * @return The bytes for attributeName. */ public com.google.protobuf.ByteString getAttributeNameBytes() { java.lang.Object ref = attributeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attributeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string attribute_name = 23 [json_name = "attributeName"];</code> * @param value The attributeName to set. * @return This builder for chaining. */ public Builder setAttributeName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } attributeName_ = value; bitField0_ |= 0x00200000; onChanged(); return this; } /** * <code>string attribute_name = 23 [json_name = "attributeName"];</code> * @return This builder for chaining. */ public Builder clearAttributeName() { attributeName_ = getDefaultInstance().getAttributeName(); bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } /** * <code>string attribute_name = 23 [json_name = "attributeName"];</code> * @param value The bytes for attributeName to set. * @return This builder for chaining. */ public Builder setAttributeNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); attributeName_ = value; bitField0_ |= 0x00200000; onChanged(); return this; } private boolean isDeprecated_ ; /** * <pre> * Whether the user marked the feature as deprecated. * </pre> * * <code>bool is_deprecated = 24 [json_name = "isDeprecated"];</code> * @return The isDeprecated. */ @java.lang.Override public boolean getIsDeprecated() { return isDeprecated_; } /** * <pre> * Whether the user marked the feature as deprecated. * </pre> * * <code>bool is_deprecated = 24 [json_name = "isDeprecated"];</code> * @param value The isDeprecated to set. * @return This builder for chaining. */ public Builder setIsDeprecated(boolean value) { isDeprecated_ = value; bitField0_ |= 0x00400000; onChanged(); return this; } /** * <pre> * Whether the user marked the feature as deprecated. * </pre> * * <code>bool is_deprecated = 24 [json_name = "isDeprecated"];</code> * @return This builder for chaining. */ public Builder clearIsDeprecated() { bitField0_ = (bitField0_ & ~0x00400000); isDeprecated_ = false; onChanged(); return this; } private int cacheStrategy_ = 0; /** * <code>.chalk.graph.v1.CacheStrategy cache_strategy = 25 [json_name = "cacheStrategy"];</code> * @return The enum numeric value on the wire for cacheStrategy. */ @java.lang.Override public int getCacheStrategyValue() { return cacheStrategy_; } /** * <code>.chalk.graph.v1.CacheStrategy cache_strategy = 25 [json_name = "cacheStrategy"];</code> * @param value The enum numeric value on the wire for cacheStrategy to set. * @return This builder for chaining. */ public Builder setCacheStrategyValue(int value) { cacheStrategy_ = value; bitField0_ |= 0x00800000; onChanged(); return this; } /** * <code>.chalk.graph.v1.CacheStrategy cache_strategy = 25 [json_name = "cacheStrategy"];</code> * @return The cacheStrategy. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.CacheStrategy getCacheStrategy() { ai.chalk.protos.chalk.graph.v1.CacheStrategy result = ai.chalk.protos.chalk.graph.v1.CacheStrategy.forNumber(cacheStrategy_); return result == null ? ai.chalk.protos.chalk.graph.v1.CacheStrategy.UNRECOGNIZED : result; } /** * <code>.chalk.graph.v1.CacheStrategy cache_strategy = 25 [json_name = "cacheStrategy"];</code> * @param value The cacheStrategy to set. * @return This builder for chaining. */ public Builder setCacheStrategy(ai.chalk.protos.chalk.graph.v1.CacheStrategy value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00800000; cacheStrategy_ = value.getNumber(); onChanged(); return this; } /** * <code>.chalk.graph.v1.CacheStrategy cache_strategy = 25 [json_name = "cacheStrategy"];</code> * @return This builder for chaining. */ public Builder clearCacheStrategy() { bitField0_ = (bitField0_ & ~0x00800000); cacheStrategy_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.graph.v1.ScalarFeatureType) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.ScalarFeatureType) private static final ai.chalk.protos.chalk.graph.v1.ScalarFeatureType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.ScalarFeatureType(); } public static ai.chalk.protos.chalk.graph.v1.ScalarFeatureType getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<ScalarFeatureType> PARSER = new com.google.protobuf.AbstractParser<ScalarFeatureType>() { @java.lang.Override public ScalarFeatureType 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<ScalarFeatureType> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<ScalarFeatureType> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ScalarFeatureType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/ScalarFeatureTypeOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface ScalarFeatureTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.ScalarFeatureType) 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 namespace = 2 [json_name = "namespace"];</code> * @return The namespace. */ java.lang.String getNamespace(); /** * <code>string namespace = 2 [json_name = "namespace"];</code> * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** * <code>bool is_autogenerated = 3 [json_name = "isAutogenerated"];</code> * @return The isAutogenerated. */ boolean getIsAutogenerated(); /** * <code>bool no_display = 4 [json_name = "noDisplay"];</code> * @return The noDisplay. */ boolean getNoDisplay(); /** * <code>bool is_primary = 5 [json_name = "isPrimary"];</code> * @return The isPrimary. */ boolean getIsPrimary(); /** * <code>bool is_nullable = 6 [json_name = "isNullable"];</code> * @return The isNullable. */ boolean getIsNullable(); /** * <code>optional uint64 internal_version = 7 [json_name = "internalVersion"];</code> * @return Whether the internalVersion field is set. */ boolean hasInternalVersion(); /** * <code>optional uint64 internal_version = 7 [json_name = "internalVersion"];</code> * @return The internalVersion. */ long getInternalVersion(); /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>.google.protobuf.Duration max_staleness_duration = 8 [json_name = "maxStalenessDuration"];</code> * @return Whether the maxStalenessDuration field is set. */ boolean hasMaxStalenessDuration(); /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>.google.protobuf.Duration max_staleness_duration = 8 [json_name = "maxStalenessDuration"];</code> * @return The maxStalenessDuration. */ com.google.protobuf.Duration getMaxStalenessDuration(); /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>.google.protobuf.Duration max_staleness_duration = 8 [json_name = "maxStalenessDuration"];</code> */ com.google.protobuf.DurationOrBuilder getMaxStalenessDurationOrBuilder(); /** * <code>.google.protobuf.Duration offline_ttl_duration = 10 [json_name = "offlineTtlDuration"];</code> * @return Whether the offlineTtlDuration field is set. */ boolean hasOfflineTtlDuration(); /** * <code>.google.protobuf.Duration offline_ttl_duration = 10 [json_name = "offlineTtlDuration"];</code> * @return The offlineTtlDuration. */ com.google.protobuf.Duration getOfflineTtlDuration(); /** * <code>.google.protobuf.Duration offline_ttl_duration = 10 [json_name = "offlineTtlDuration"];</code> */ com.google.protobuf.DurationOrBuilder getOfflineTtlDurationOrBuilder(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 11 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ boolean hasArrowType(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 11 [json_name = "arrowType"];</code> * @return The arrowType. */ ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 11 [json_name = "arrowType"];</code> */ ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder(); /** * <code>.chalk.graph.v1.VersionInfo version = 12 [json_name = "version"];</code> * @return Whether the version field is set. */ boolean hasVersion(); /** * <code>.chalk.graph.v1.VersionInfo version = 12 [json_name = "version"];</code> * @return The version. */ ai.chalk.protos.chalk.graph.v1.VersionInfo getVersion(); /** * <code>.chalk.graph.v1.VersionInfo version = 12 [json_name = "version"];</code> */ ai.chalk.protos.chalk.graph.v1.VersionInfoOrBuilder getVersionOrBuilder(); /** * <code>.chalk.graph.v1.WindowInfo window_info = 13 [json_name = "windowInfo"];</code> * @return Whether the windowInfo field is set. */ boolean hasWindowInfo(); /** * <code>.chalk.graph.v1.WindowInfo window_info = 13 [json_name = "windowInfo"];</code> * @return The windowInfo. */ ai.chalk.protos.chalk.graph.v1.WindowInfo getWindowInfo(); /** * <code>.chalk.graph.v1.WindowInfo window_info = 13 [json_name = "windowInfo"];</code> */ ai.chalk.protos.chalk.graph.v1.WindowInfoOrBuilder getWindowInfoOrBuilder(); /** * <code>.chalk.arrow.v1.ScalarValue default_value = 14 [json_name = "defaultValue"];</code> * @return Whether the defaultValue field is set. */ boolean hasDefaultValue(); /** * <code>.chalk.arrow.v1.ScalarValue default_value = 14 [json_name = "defaultValue"];</code> * @return The defaultValue. */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getDefaultValue(); /** * <code>.chalk.arrow.v1.ScalarValue default_value = 14 [json_name = "defaultValue"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder getDefaultValueOrBuilder(); /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @return A list containing the tags. */ java.util.List<java.lang.String> getTagsList(); /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @return The count of tags. */ int getTagsCount(); /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** * <code>repeated string tags = 15 [json_name = "tags"];</code> * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); /** * <code>optional string description = 16 [json_name = "description"];</code> * @return Whether the description field is set. */ boolean hasDescription(); /** * <code>optional string description = 16 [json_name = "description"];</code> * @return The description. */ java.lang.String getDescription(); /** * <code>optional string description = 16 [json_name = "description"];</code> * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** * <code>optional string owner = 17 [json_name = "owner"];</code> * @return Whether the owner field is set. */ boolean hasOwner(); /** * <code>optional string owner = 17 [json_name = "owner"];</code> * @return The owner. */ java.lang.String getOwner(); /** * <code>optional string owner = 17 [json_name = "owner"];</code> * @return The bytes for owner. */ com.google.protobuf.ByteString getOwnerBytes(); /** * <code>.chalk.expression.v1.LogicalExprNode expression = 18 [json_name = "expression"];</code> * @return Whether the expression field is set. */ boolean hasExpression(); /** * <code>.chalk.expression.v1.LogicalExprNode expression = 18 [json_name = "expression"];</code> * @return The expression. */ ai.chalk.protos.chalk.expression.v1.LogicalExprNode getExpression(); /** * <code>.chalk.expression.v1.LogicalExprNode expression = 18 [json_name = "expression"];</code> */ ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder getExpressionOrBuilder(); /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureValidation> getValidationsList(); /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ ai.chalk.protos.chalk.graph.v1.FeatureValidation getValidations(int index); /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ int getValidationsCount(); /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder> getValidationsOrBuilderList(); /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 19 [json_name = "validations"];</code> */ ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder getValidationsOrBuilder( int index); /** * <code>.chalk.graph.v1.FeatureReference last_for = 20 [json_name = "lastFor"];</code> * @return Whether the lastFor field is set. */ boolean hasLastFor(); /** * <code>.chalk.graph.v1.FeatureReference last_for = 20 [json_name = "lastFor"];</code> * @return The lastFor. */ ai.chalk.protos.chalk.graph.v1.FeatureReference getLastFor(); /** * <code>.chalk.graph.v1.FeatureReference last_for = 20 [json_name = "lastFor"];</code> */ ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getLastForOrBuilder(); /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>optional bool etl_offline_to_online = 21 [json_name = "etlOfflineToOnline"];</code> * @return Whether the etlOfflineToOnline field is set. */ boolean hasEtlOfflineToOnline(); /** * <pre> * This represents whatever arg the user passed into the `feature()` call. * If both set, this should take precedence over the value in `FeatureSet`. * If unset here, the value in `FeatureSet` should be used. * </pre> * * <code>optional bool etl_offline_to_online = 21 [json_name = "etlOfflineToOnline"];</code> * @return The etlOfflineToOnline. */ boolean getEtlOfflineToOnline(); /** * <code>bool is_distance_pseudofeature = 22 [json_name = "isDistancePseudofeature"];</code> * @return The isDistancePseudofeature. */ boolean getIsDistancePseudofeature(); /** * <code>string attribute_name = 23 [json_name = "attributeName"];</code> * @return The attributeName. */ java.lang.String getAttributeName(); /** * <code>string attribute_name = 23 [json_name = "attributeName"];</code> * @return The bytes for attributeName. */ com.google.protobuf.ByteString getAttributeNameBytes(); /** * <pre> * Whether the user marked the feature as deprecated. * </pre> * * <code>bool is_deprecated = 24 [json_name = "isDeprecated"];</code> * @return The isDeprecated. */ boolean getIsDeprecated(); /** * <code>.chalk.graph.v1.CacheStrategy cache_strategy = 25 [json_name = "cacheStrategy"];</code> * @return The enum numeric value on the wire for cacheStrategy. */ int getCacheStrategyValue(); /** * <code>.chalk.graph.v1.CacheStrategy cache_strategy = 25 [json_name = "cacheStrategy"];</code> * @return The cacheStrategy. */ ai.chalk.protos.chalk.graph.v1.CacheStrategy getCacheStrategy(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/Schedule.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.Schedule} */ public final class Schedule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.Schedule) ScheduleOrBuilder { private static final long serialVersionUID = 0L; // Use Schedule.newBuilder() to construct. private Schedule(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Schedule() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Schedule(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.Schedule.class, ai.chalk.protos.chalk.graph.v1.Schedule.Builder.class); } private int bitField0_; private int scheduleCase_ = 0; @SuppressWarnings("serial") private java.lang.Object schedule_; public enum ScheduleCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CRONTAB(1), DURATION(2), SCHEDULE_NOT_SET(0); private final int value; private ScheduleCase(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 ScheduleCase valueOf(int value) { return forNumber(value); } public static ScheduleCase forNumber(int value) { switch (value) { case 1: return CRONTAB; case 2: return DURATION; case 0: return SCHEDULE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ScheduleCase getScheduleCase() { return ScheduleCase.forNumber( scheduleCase_); } public static final int CRONTAB_FIELD_NUMBER = 1; /** * <code>string crontab = 1 [json_name = "crontab"];</code> * @return Whether the crontab field is set. */ public boolean hasCrontab() { return scheduleCase_ == 1; } /** * <code>string crontab = 1 [json_name = "crontab"];</code> * @return The crontab. */ public java.lang.String getCrontab() { java.lang.Object ref = ""; if (scheduleCase_ == 1) { ref = schedule_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (scheduleCase_ == 1) { schedule_ = s; } return s; } } /** * <code>string crontab = 1 [json_name = "crontab"];</code> * @return The bytes for crontab. */ public com.google.protobuf.ByteString getCrontabBytes() { java.lang.Object ref = ""; if (scheduleCase_ == 1) { ref = schedule_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (scheduleCase_ == 1) { schedule_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DURATION_FIELD_NUMBER = 2; /** * <code>.google.protobuf.Duration duration = 2 [json_name = "duration"];</code> * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return scheduleCase_ == 2; } /** * <code>.google.protobuf.Duration duration = 2 [json_name = "duration"];</code> * @return The duration. */ @java.lang.Override public com.google.protobuf.Duration getDuration() { if (scheduleCase_ == 2) { return (com.google.protobuf.Duration) schedule_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** * <code>.google.protobuf.Duration duration = 2 [json_name = "duration"];</code> */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (scheduleCase_ == 2) { return (com.google.protobuf.Duration) schedule_; } return com.google.protobuf.Duration.getDefaultInstance(); } public static final int FILTER_FIELD_NUMBER = 3; private ai.chalk.protos.chalk.graph.v1.FunctionReference filter_; /** * <code>.chalk.graph.v1.FunctionReference filter = 3 [json_name = "filter"];</code> * @return Whether the filter field is set. */ @java.lang.Override public boolean hasFilter() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.graph.v1.FunctionReference filter = 3 [json_name = "filter"];</code> * @return The filter. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FunctionReference getFilter() { return filter_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : filter_; } /** * <code>.chalk.graph.v1.FunctionReference filter = 3 [json_name = "filter"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder getFilterOrBuilder() { return filter_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : filter_; } public static final int SAMPLE_FIELD_NUMBER = 4; private ai.chalk.protos.chalk.graph.v1.FunctionReference sample_; /** * <code>.chalk.graph.v1.FunctionReference sample = 4 [json_name = "sample"];</code> * @return Whether the sample field is set. */ @java.lang.Override public boolean hasSample() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.graph.v1.FunctionReference sample = 4 [json_name = "sample"];</code> * @return The sample. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FunctionReference getSample() { return sample_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : sample_; } /** * <code>.chalk.graph.v1.FunctionReference sample = 4 [json_name = "sample"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder getSampleOrBuilder() { return sample_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : sample_; } 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 (scheduleCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schedule_); } if (scheduleCase_ == 2) { output.writeMessage(2, (com.google.protobuf.Duration) schedule_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getFilter()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getSample()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (scheduleCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schedule_); } if (scheduleCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.google.protobuf.Duration) schedule_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getFilter()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSample()); } 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.graph.v1.Schedule)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.Schedule other = (ai.chalk.protos.chalk.graph.v1.Schedule) obj; if (hasFilter() != other.hasFilter()) return false; if (hasFilter()) { if (!getFilter() .equals(other.getFilter())) return false; } if (hasSample() != other.hasSample()) return false; if (hasSample()) { if (!getSample() .equals(other.getSample())) return false; } if (!getScheduleCase().equals(other.getScheduleCase())) return false; switch (scheduleCase_) { case 1: if (!getCrontab() .equals(other.getCrontab())) return false; break; case 2: if (!getDuration() .equals(other.getDuration())) 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(); if (hasFilter()) { hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); } if (hasSample()) { hash = (37 * hash) + SAMPLE_FIELD_NUMBER; hash = (53 * hash) + getSample().hashCode(); } switch (scheduleCase_) { case 1: hash = (37 * hash) + CRONTAB_FIELD_NUMBER; hash = (53 * hash) + getCrontab().hashCode(); break; case 2: hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.Schedule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.Schedule 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.graph.v1.Schedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.Schedule 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.graph.v1.Schedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.Schedule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.Schedule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.Schedule 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.graph.v1.Schedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.Schedule 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.graph.v1.Schedule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.Schedule 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.graph.v1.Schedule 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.graph.v1.Schedule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.Schedule) ai.chalk.protos.chalk.graph.v1.ScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.Schedule.class, ai.chalk.protos.chalk.graph.v1.Schedule.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.Schedule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFilterFieldBuilder(); getSampleFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (durationBuilder_ != null) { durationBuilder_.clear(); } filter_ = null; if (filterBuilder_ != null) { filterBuilder_.dispose(); filterBuilder_ = null; } sample_ = null; if (sampleBuilder_ != null) { sampleBuilder_.dispose(); sampleBuilder_ = null; } scheduleCase_ = 0; schedule_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_Schedule_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.Schedule getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.Schedule.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.Schedule build() { ai.chalk.protos.chalk.graph.v1.Schedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.Schedule buildPartial() { ai.chalk.protos.chalk.graph.v1.Schedule result = new ai.chalk.protos.chalk.graph.v1.Schedule(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.Schedule result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.sample_ = sampleBuilder_ == null ? sample_ : sampleBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(ai.chalk.protos.chalk.graph.v1.Schedule result) { result.scheduleCase_ = scheduleCase_; result.schedule_ = this.schedule_; if (scheduleCase_ == 2 && durationBuilder_ != null) { result.schedule_ = durationBuilder_.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.graph.v1.Schedule) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.Schedule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.Schedule other) { if (other == ai.chalk.protos.chalk.graph.v1.Schedule.getDefaultInstance()) return this; if (other.hasFilter()) { mergeFilter(other.getFilter()); } if (other.hasSample()) { mergeSample(other.getSample()); } switch (other.getScheduleCase()) { case CRONTAB: { scheduleCase_ = 1; schedule_ = other.schedule_; onChanged(); break; } case DURATION: { mergeDuration(other.getDuration()); break; } case SCHEDULE_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: { java.lang.String s = input.readStringRequireUtf8(); scheduleCase_ = 1; schedule_ = s; break; } // case 10 case 18: { input.readMessage( getDurationFieldBuilder().getBuilder(), extensionRegistry); scheduleCase_ = 2; break; } // case 18 case 26: { input.readMessage( getFilterFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getSampleFieldBuilder().getBuilder(), extensionRegistry); 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 scheduleCase_ = 0; private java.lang.Object schedule_; public ScheduleCase getScheduleCase() { return ScheduleCase.forNumber( scheduleCase_); } public Builder clearSchedule() { scheduleCase_ = 0; schedule_ = null; onChanged(); return this; } private int bitField0_; /** * <code>string crontab = 1 [json_name = "crontab"];</code> * @return Whether the crontab field is set. */ @java.lang.Override public boolean hasCrontab() { return scheduleCase_ == 1; } /** * <code>string crontab = 1 [json_name = "crontab"];</code> * @return The crontab. */ @java.lang.Override public java.lang.String getCrontab() { java.lang.Object ref = ""; if (scheduleCase_ == 1) { ref = schedule_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (scheduleCase_ == 1) { schedule_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>string crontab = 1 [json_name = "crontab"];</code> * @return The bytes for crontab. */ @java.lang.Override public com.google.protobuf.ByteString getCrontabBytes() { java.lang.Object ref = ""; if (scheduleCase_ == 1) { ref = schedule_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (scheduleCase_ == 1) { schedule_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string crontab = 1 [json_name = "crontab"];</code> * @param value The crontab to set. * @return This builder for chaining. */ public Builder setCrontab( java.lang.String value) { if (value == null) { throw new NullPointerException(); } scheduleCase_ = 1; schedule_ = value; onChanged(); return this; } /** * <code>string crontab = 1 [json_name = "crontab"];</code> * @return This builder for chaining. */ public Builder clearCrontab() { if (scheduleCase_ == 1) { scheduleCase_ = 0; schedule_ = null; onChanged(); } return this; } /** * <code>string crontab = 1 [json_name = "crontab"];</code> * @param value The bytes for crontab to set. * @return This builder for chaining. */ public Builder setCrontabBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); scheduleCase_ = 1; schedule_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** * <code>.google.protobuf.Duration duration = 2 [json_name = "duration"];</code> * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return scheduleCase_ == 2; } /** * <code>.google.protobuf.Duration duration = 2 [json_name = "duration"];</code> * @return The duration. */ @java.lang.Override public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { if (scheduleCase_ == 2) { return (com.google.protobuf.Duration) schedule_; } return com.google.protobuf.Duration.getDefaultInstance(); } else { if (scheduleCase_ == 2) { return durationBuilder_.getMessage(); } return com.google.protobuf.Duration.getDefaultInstance(); } } /** * <code>.google.protobuf.Duration duration = 2 [json_name = "duration"];</code> */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schedule_ = value; onChanged(); } else { durationBuilder_.setMessage(value); } scheduleCase_ = 2; return this; } /** * <code>.google.protobuf.Duration duration = 2 [json_name = "duration"];</code> */ public Builder setDuration( com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { schedule_ = builderForValue.build(); onChanged(); } else { durationBuilder_.setMessage(builderForValue.build()); } scheduleCase_ = 2; return this; } /** * <code>.google.protobuf.Duration duration = 2 [json_name = "duration"];</code> */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (scheduleCase_ == 2 && schedule_ != com.google.protobuf.Duration.getDefaultInstance()) { schedule_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) schedule_) .mergeFrom(value).buildPartial(); } else { schedule_ = value; } onChanged(); } else { if (scheduleCase_ == 2) { durationBuilder_.mergeFrom(value); } else { durationBuilder_.setMessage(value); } } scheduleCase_ = 2; return this; } /** * <code>.google.protobuf.Duration duration = 2 [json_name = "duration"];</code> */ public Builder clearDuration() { if (durationBuilder_ == null) { if (scheduleCase_ == 2) { scheduleCase_ = 0; schedule_ = null; onChanged(); } } else { if (scheduleCase_ == 2) { scheduleCase_ = 0; schedule_ = null; } durationBuilder_.clear(); } return this; } /** * <code>.google.protobuf.Duration duration = 2 [json_name = "duration"];</code> */ public com.google.protobuf.Duration.Builder getDurationBuilder() { return getDurationFieldBuilder().getBuilder(); } /** * <code>.google.protobuf.Duration duration = 2 [json_name = "duration"];</code> */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if ((scheduleCase_ == 2) && (durationBuilder_ != null)) { return durationBuilder_.getMessageOrBuilder(); } else { if (scheduleCase_ == 2) { return (com.google.protobuf.Duration) schedule_; } return com.google.protobuf.Duration.getDefaultInstance(); } } /** * <code>.google.protobuf.Duration duration = 2 [json_name = "duration"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { if (!(scheduleCase_ == 2)) { schedule_ = com.google.protobuf.Duration.getDefaultInstance(); } durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( (com.google.protobuf.Duration) schedule_, getParentForChildren(), isClean()); schedule_ = null; } scheduleCase_ = 2; onChanged(); return durationBuilder_; } private ai.chalk.protos.chalk.graph.v1.FunctionReference filter_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FunctionReference, ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder, ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder> filterBuilder_; /** * <code>.chalk.graph.v1.FunctionReference filter = 3 [json_name = "filter"];</code> * @return Whether the filter field is set. */ public boolean hasFilter() { return ((bitField0_ & 0x00000004) != 0); } /** * <code>.chalk.graph.v1.FunctionReference filter = 3 [json_name = "filter"];</code> * @return The filter. */ public ai.chalk.protos.chalk.graph.v1.FunctionReference getFilter() { if (filterBuilder_ == null) { return filter_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : filter_; } else { return filterBuilder_.getMessage(); } } /** * <code>.chalk.graph.v1.FunctionReference filter = 3 [json_name = "filter"];</code> */ public Builder setFilter(ai.chalk.protos.chalk.graph.v1.FunctionReference value) { if (filterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } filter_ = value; } else { filterBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>.chalk.graph.v1.FunctionReference filter = 3 [json_name = "filter"];</code> */ public Builder setFilter( ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder builderForValue) { if (filterBuilder_ == null) { filter_ = builderForValue.build(); } else { filterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>.chalk.graph.v1.FunctionReference filter = 3 [json_name = "filter"];</code> */ public Builder mergeFilter(ai.chalk.protos.chalk.graph.v1.FunctionReference value) { if (filterBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && filter_ != null && filter_ != ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance()) { getFilterBuilder().mergeFrom(value); } else { filter_ = value; } } else { filterBuilder_.mergeFrom(value); } if (filter_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * <code>.chalk.graph.v1.FunctionReference filter = 3 [json_name = "filter"];</code> */ public Builder clearFilter() { bitField0_ = (bitField0_ & ~0x00000004); filter_ = null; if (filterBuilder_ != null) { filterBuilder_.dispose(); filterBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.graph.v1.FunctionReference filter = 3 [json_name = "filter"];</code> */ public ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder getFilterBuilder() { bitField0_ |= 0x00000004; onChanged(); return getFilterFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.FunctionReference filter = 3 [json_name = "filter"];</code> */ public ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder getFilterOrBuilder() { if (filterBuilder_ != null) { return filterBuilder_.getMessageOrBuilder(); } else { return filter_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : filter_; } } /** * <code>.chalk.graph.v1.FunctionReference filter = 3 [json_name = "filter"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FunctionReference, ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder, ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder> getFilterFieldBuilder() { if (filterBuilder_ == null) { filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FunctionReference, ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder, ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder>( getFilter(), getParentForChildren(), isClean()); filter_ = null; } return filterBuilder_; } private ai.chalk.protos.chalk.graph.v1.FunctionReference sample_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FunctionReference, ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder, ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder> sampleBuilder_; /** * <code>.chalk.graph.v1.FunctionReference sample = 4 [json_name = "sample"];</code> * @return Whether the sample field is set. */ public boolean hasSample() { return ((bitField0_ & 0x00000008) != 0); } /** * <code>.chalk.graph.v1.FunctionReference sample = 4 [json_name = "sample"];</code> * @return The sample. */ public ai.chalk.protos.chalk.graph.v1.FunctionReference getSample() { if (sampleBuilder_ == null) { return sample_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : sample_; } else { return sampleBuilder_.getMessage(); } } /** * <code>.chalk.graph.v1.FunctionReference sample = 4 [json_name = "sample"];</code> */ public Builder setSample(ai.chalk.protos.chalk.graph.v1.FunctionReference value) { if (sampleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sample_ = value; } else { sampleBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>.chalk.graph.v1.FunctionReference sample = 4 [json_name = "sample"];</code> */ public Builder setSample( ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder builderForValue) { if (sampleBuilder_ == null) { sample_ = builderForValue.build(); } else { sampleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>.chalk.graph.v1.FunctionReference sample = 4 [json_name = "sample"];</code> */ public Builder mergeSample(ai.chalk.protos.chalk.graph.v1.FunctionReference value) { if (sampleBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && sample_ != null && sample_ != ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance()) { getSampleBuilder().mergeFrom(value); } else { sample_ = value; } } else { sampleBuilder_.mergeFrom(value); } if (sample_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * <code>.chalk.graph.v1.FunctionReference sample = 4 [json_name = "sample"];</code> */ public Builder clearSample() { bitField0_ = (bitField0_ & ~0x00000008); sample_ = null; if (sampleBuilder_ != null) { sampleBuilder_.dispose(); sampleBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.graph.v1.FunctionReference sample = 4 [json_name = "sample"];</code> */ public ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder getSampleBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSampleFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.FunctionReference sample = 4 [json_name = "sample"];</code> */ public ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder getSampleOrBuilder() { if (sampleBuilder_ != null) { return sampleBuilder_.getMessageOrBuilder(); } else { return sample_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : sample_; } } /** * <code>.chalk.graph.v1.FunctionReference sample = 4 [json_name = "sample"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FunctionReference, ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder, ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder> getSampleFieldBuilder() { if (sampleBuilder_ == null) { sampleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FunctionReference, ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder, ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder>( getSample(), getParentForChildren(), isClean()); sample_ = null; } return sampleBuilder_; } @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.graph.v1.Schedule) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.Schedule) private static final ai.chalk.protos.chalk.graph.v1.Schedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.Schedule(); } public static ai.chalk.protos.chalk.graph.v1.Schedule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Schedule> PARSER = new com.google.protobuf.AbstractParser<Schedule>() { @java.lang.Override public Schedule 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<Schedule> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Schedule> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.Schedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/ScheduleOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface ScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.Schedule) com.google.protobuf.MessageOrBuilder { /** * <code>string crontab = 1 [json_name = "crontab"];</code> * @return Whether the crontab field is set. */ boolean hasCrontab(); /** * <code>string crontab = 1 [json_name = "crontab"];</code> * @return The crontab. */ java.lang.String getCrontab(); /** * <code>string crontab = 1 [json_name = "crontab"];</code> * @return The bytes for crontab. */ com.google.protobuf.ByteString getCrontabBytes(); /** * <code>.google.protobuf.Duration duration = 2 [json_name = "duration"];</code> * @return Whether the duration field is set. */ boolean hasDuration(); /** * <code>.google.protobuf.Duration duration = 2 [json_name = "duration"];</code> * @return The duration. */ com.google.protobuf.Duration getDuration(); /** * <code>.google.protobuf.Duration duration = 2 [json_name = "duration"];</code> */ com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); /** * <code>.chalk.graph.v1.FunctionReference filter = 3 [json_name = "filter"];</code> * @return Whether the filter field is set. */ boolean hasFilter(); /** * <code>.chalk.graph.v1.FunctionReference filter = 3 [json_name = "filter"];</code> * @return The filter. */ ai.chalk.protos.chalk.graph.v1.FunctionReference getFilter(); /** * <code>.chalk.graph.v1.FunctionReference filter = 3 [json_name = "filter"];</code> */ ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder getFilterOrBuilder(); /** * <code>.chalk.graph.v1.FunctionReference sample = 4 [json_name = "sample"];</code> * @return Whether the sample field is set. */ boolean hasSample(); /** * <code>.chalk.graph.v1.FunctionReference sample = 4 [json_name = "sample"];</code> * @return The sample. */ ai.chalk.protos.chalk.graph.v1.FunctionReference getSample(); /** * <code>.chalk.graph.v1.FunctionReference sample = 4 [json_name = "sample"];</code> */ ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder getSampleOrBuilder(); ai.chalk.protos.chalk.graph.v1.Schedule.ScheduleCase getScheduleCase(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/SinkResolver.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.SinkResolver} */ public final class SinkResolver extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.SinkResolver) SinkResolverOrBuilder { private static final long serialVersionUID = 0L; // Use SinkResolver.newBuilder() to construct. private SinkResolver(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private SinkResolver() { fqn_ = ""; inputs_ = java.util.Collections.emptyList(); machineType_ = ""; doc_ = ""; owner_ = ""; environments_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SinkResolver(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_SinkResolver_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_SinkResolver_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.SinkResolver.class, ai.chalk.protos.chalk.graph.v1.SinkResolver.Builder.class); } private int bitField0_; private int integrationCase_ = 0; @SuppressWarnings("serial") private java.lang.Object integration_; public enum IntegrationCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STREAM_SOURCE(7), DATABASE_SOURCE(8), INTEGRATION_NOT_SET(0); private final int value; private IntegrationCase(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 IntegrationCase valueOf(int value) { return forNumber(value); } public static IntegrationCase forNumber(int value) { switch (value) { case 7: return STREAM_SOURCE; case 8: return DATABASE_SOURCE; case 0: return INTEGRATION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public IntegrationCase getIntegrationCase() { return IntegrationCase.forNumber( integrationCase_); } public static final int FQN_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object fqn_ = ""; /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return The fqn. */ @java.lang.Override public java.lang.String getFqn() { java.lang.Object ref = fqn_; 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(); fqn_ = s; return s; } } /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return The bytes for fqn. */ @java.lang.Override public com.google.protobuf.ByteString getFqnBytes() { java.lang.Object ref = fqn_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fqn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INPUTS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.graph.v1.ResolverInput> inputs_; /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.graph.v1.ResolverInput> getInputsList() { return inputs_; } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.graph.v1.ResolverInputOrBuilder> getInputsOrBuilderList() { return inputs_; } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ @java.lang.Override public int getInputsCount() { return inputs_.size(); } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverInput getInputs(int index) { return inputs_.get(index); } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverInputOrBuilder getInputsOrBuilder( int index) { return inputs_.get(index); } public static final int BUFFER_SIZE_FIELD_NUMBER = 3; private long bufferSize_ = 0L; /** * <code>optional uint64 buffer_size = 3 [json_name = "bufferSize"];</code> * @return Whether the bufferSize field is set. */ @java.lang.Override public boolean hasBufferSize() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>optional uint64 buffer_size = 3 [json_name = "bufferSize"];</code> * @return The bufferSize. */ @java.lang.Override public long getBufferSize() { return bufferSize_; } public static final int DEBOUNCE_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration debounceDuration_; /** * <code>.google.protobuf.Duration debounce_duration = 4 [json_name = "debounceDuration"];</code> * @return Whether the debounceDuration field is set. */ @java.lang.Override public boolean hasDebounceDuration() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.google.protobuf.Duration debounce_duration = 4 [json_name = "debounceDuration"];</code> * @return The debounceDuration. */ @java.lang.Override public com.google.protobuf.Duration getDebounceDuration() { return debounceDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : debounceDuration_; } /** * <code>.google.protobuf.Duration debounce_duration = 4 [json_name = "debounceDuration"];</code> */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDebounceDurationOrBuilder() { return debounceDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : debounceDuration_; } public static final int MAX_DELAY_DURATION_FIELD_NUMBER = 5; private com.google.protobuf.Duration maxDelayDuration_; /** * <code>.google.protobuf.Duration max_delay_duration = 5 [json_name = "maxDelayDuration"];</code> * @return Whether the maxDelayDuration field is set. */ @java.lang.Override public boolean hasMaxDelayDuration() { return ((bitField0_ & 0x00000004) != 0); } /** * <code>.google.protobuf.Duration max_delay_duration = 5 [json_name = "maxDelayDuration"];</code> * @return The maxDelayDuration. */ @java.lang.Override public com.google.protobuf.Duration getMaxDelayDuration() { return maxDelayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDelayDuration_; } /** * <code>.google.protobuf.Duration max_delay_duration = 5 [json_name = "maxDelayDuration"];</code> */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxDelayDurationOrBuilder() { return maxDelayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDelayDuration_; } public static final int UPSERT_FIELD_NUMBER = 6; private boolean upsert_ = false; /** * <code>bool upsert = 6 [json_name = "upsert"];</code> * @return The upsert. */ @java.lang.Override public boolean getUpsert() { return upsert_; } public static final int STREAM_SOURCE_FIELD_NUMBER = 7; /** * <code>.chalk.graph.v1.StreamSourceReference stream_source = 7 [json_name = "streamSource"];</code> * @return Whether the streamSource field is set. */ @java.lang.Override public boolean hasStreamSource() { return integrationCase_ == 7; } /** * <code>.chalk.graph.v1.StreamSourceReference stream_source = 7 [json_name = "streamSource"];</code> * @return The streamSource. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSourceReference getStreamSource() { if (integrationCase_ == 7) { return (ai.chalk.protos.chalk.graph.v1.StreamSourceReference) integration_; } return ai.chalk.protos.chalk.graph.v1.StreamSourceReference.getDefaultInstance(); } /** * <code>.chalk.graph.v1.StreamSourceReference stream_source = 7 [json_name = "streamSource"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSourceReferenceOrBuilder getStreamSourceOrBuilder() { if (integrationCase_ == 7) { return (ai.chalk.protos.chalk.graph.v1.StreamSourceReference) integration_; } return ai.chalk.protos.chalk.graph.v1.StreamSourceReference.getDefaultInstance(); } public static final int DATABASE_SOURCE_FIELD_NUMBER = 8; /** * <code>.chalk.graph.v1.DatabaseSourceReference database_source = 8 [json_name = "databaseSource"];</code> * @return Whether the databaseSource field is set. */ @java.lang.Override public boolean hasDatabaseSource() { return integrationCase_ == 8; } /** * <code>.chalk.graph.v1.DatabaseSourceReference database_source = 8 [json_name = "databaseSource"];</code> * @return The databaseSource. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference getDatabaseSource() { if (integrationCase_ == 8) { return (ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference) integration_; } return ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference.getDefaultInstance(); } /** * <code>.chalk.graph.v1.DatabaseSourceReference database_source = 8 [json_name = "databaseSource"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.DatabaseSourceReferenceOrBuilder getDatabaseSourceOrBuilder() { if (integrationCase_ == 8) { return (ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference) integration_; } return ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference.getDefaultInstance(); } public static final int MACHINE_TYPE_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object machineType_ = ""; /** * <code>optional string machine_type = 9 [json_name = "machineType"];</code> * @return Whether the machineType field is set. */ @java.lang.Override public boolean hasMachineType() { return ((bitField0_ & 0x00000008) != 0); } /** * <code>optional string machine_type = 9 [json_name = "machineType"];</code> * @return The machineType. */ @java.lang.Override public java.lang.String getMachineType() { java.lang.Object ref = machineType_; 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(); machineType_ = s; return s; } } /** * <code>optional string machine_type = 9 [json_name = "machineType"];</code> * @return The bytes for machineType. */ @java.lang.Override public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); machineType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOC_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object doc_ = ""; /** * <code>optional string doc = 10 [json_name = "doc"];</code> * @return Whether the doc field is set. */ @java.lang.Override public boolean hasDoc() { return ((bitField0_ & 0x00000010) != 0); } /** * <code>optional string doc = 10 [json_name = "doc"];</code> * @return The doc. */ @java.lang.Override public java.lang.String getDoc() { java.lang.Object ref = doc_; 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(); doc_ = s; return s; } } /** * <code>optional string doc = 10 [json_name = "doc"];</code> * @return The bytes for doc. */ @java.lang.Override public com.google.protobuf.ByteString getDocBytes() { java.lang.Object ref = doc_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); doc_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OWNER_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object owner_ = ""; /** * <code>optional string owner = 11 [json_name = "owner"];</code> * @return Whether the owner field is set. */ @java.lang.Override public boolean hasOwner() { return ((bitField0_ & 0x00000020) != 0); } /** * <code>optional string owner = 11 [json_name = "owner"];</code> * @return The owner. */ @java.lang.Override public java.lang.String getOwner() { java.lang.Object ref = owner_; 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(); owner_ = s; return s; } } /** * <code>optional string owner = 11 [json_name = "owner"];</code> * @return The bytes for owner. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENVIRONMENTS_FIELD_NUMBER = 12; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList environments_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @return A list containing the environments. */ public com.google.protobuf.ProtocolStringList getEnvironmentsList() { return environments_; } /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @return The count of environments. */ public int getEnvironmentsCount() { return environments_.size(); } /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @param index The index of the element to return. * @return The environments at the given index. */ public java.lang.String getEnvironments(int index) { return environments_.get(index); } /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @param index The index of the value to return. * @return The bytes of the environments at the given index. */ public com.google.protobuf.ByteString getEnvironmentsBytes(int index) { return environments_.getByteString(index); } public static final int TIMEOUT_DURATION_FIELD_NUMBER = 13; private com.google.protobuf.Duration timeoutDuration_; /** * <code>.google.protobuf.Duration timeout_duration = 13 [json_name = "timeoutDuration"];</code> * @return Whether the timeoutDuration field is set. */ @java.lang.Override public boolean hasTimeoutDuration() { return ((bitField0_ & 0x00000040) != 0); } /** * <code>.google.protobuf.Duration timeout_duration = 13 [json_name = "timeoutDuration"];</code> * @return The timeoutDuration. */ @java.lang.Override public com.google.protobuf.Duration getTimeoutDuration() { return timeoutDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeoutDuration_; } /** * <code>.google.protobuf.Duration timeout_duration = 13 [json_name = "timeoutDuration"];</code> */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeoutDurationOrBuilder() { return timeoutDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeoutDuration_; } public static final int FUNCTION_FIELD_NUMBER = 14; private ai.chalk.protos.chalk.graph.v1.FunctionReference function_; /** * <code>.chalk.graph.v1.FunctionReference function = 14 [json_name = "function"];</code> * @return Whether the function field is set. */ @java.lang.Override public boolean hasFunction() { return ((bitField0_ & 0x00000080) != 0); } /** * <code>.chalk.graph.v1.FunctionReference function = 14 [json_name = "function"];</code> * @return The function. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FunctionReference getFunction() { return function_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : function_; } /** * <code>.chalk.graph.v1.FunctionReference function = 14 [json_name = "function"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder getFunctionOrBuilder() { return function_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : function_; } 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(fqn_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fqn_); } for (int i = 0; i < inputs_.size(); i++) { output.writeMessage(2, inputs_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt64(3, bufferSize_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getDebounceDuration()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getMaxDelayDuration()); } if (upsert_ != false) { output.writeBool(6, upsert_); } if (integrationCase_ == 7) { output.writeMessage(7, (ai.chalk.protos.chalk.graph.v1.StreamSourceReference) integration_); } if (integrationCase_ == 8) { output.writeMessage(8, (ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference) integration_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, machineType_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, doc_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, owner_); } for (int i = 0; i < environments_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, environments_.getRaw(i)); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(13, getTimeoutDuration()); } if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(14, getFunction()); } 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(fqn_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fqn_); } for (int i = 0; i < inputs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, inputs_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, bufferSize_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getDebounceDuration()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMaxDelayDuration()); } if (upsert_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, upsert_); } if (integrationCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (ai.chalk.protos.chalk.graph.v1.StreamSourceReference) integration_); } if (integrationCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference) integration_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, machineType_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, doc_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, owner_); } { int dataSize = 0; for (int i = 0; i < environments_.size(); i++) { dataSize += computeStringSizeNoTag(environments_.getRaw(i)); } size += dataSize; size += 1 * getEnvironmentsList().size(); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getTimeoutDuration()); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getFunction()); } 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.graph.v1.SinkResolver)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.SinkResolver other = (ai.chalk.protos.chalk.graph.v1.SinkResolver) obj; if (!getFqn() .equals(other.getFqn())) return false; if (!getInputsList() .equals(other.getInputsList())) return false; if (hasBufferSize() != other.hasBufferSize()) return false; if (hasBufferSize()) { if (getBufferSize() != other.getBufferSize()) return false; } if (hasDebounceDuration() != other.hasDebounceDuration()) return false; if (hasDebounceDuration()) { if (!getDebounceDuration() .equals(other.getDebounceDuration())) return false; } if (hasMaxDelayDuration() != other.hasMaxDelayDuration()) return false; if (hasMaxDelayDuration()) { if (!getMaxDelayDuration() .equals(other.getMaxDelayDuration())) return false; } if (getUpsert() != other.getUpsert()) return false; if (hasMachineType() != other.hasMachineType()) return false; if (hasMachineType()) { if (!getMachineType() .equals(other.getMachineType())) return false; } if (hasDoc() != other.hasDoc()) return false; if (hasDoc()) { if (!getDoc() .equals(other.getDoc())) return false; } if (hasOwner() != other.hasOwner()) return false; if (hasOwner()) { if (!getOwner() .equals(other.getOwner())) return false; } if (!getEnvironmentsList() .equals(other.getEnvironmentsList())) return false; if (hasTimeoutDuration() != other.hasTimeoutDuration()) return false; if (hasTimeoutDuration()) { if (!getTimeoutDuration() .equals(other.getTimeoutDuration())) return false; } if (hasFunction() != other.hasFunction()) return false; if (hasFunction()) { if (!getFunction() .equals(other.getFunction())) return false; } if (!getIntegrationCase().equals(other.getIntegrationCase())) return false; switch (integrationCase_) { case 7: if (!getStreamSource() .equals(other.getStreamSource())) return false; break; case 8: if (!getDatabaseSource() .equals(other.getDatabaseSource())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FQN_FIELD_NUMBER; hash = (53 * hash) + getFqn().hashCode(); if (getInputsCount() > 0) { hash = (37 * hash) + INPUTS_FIELD_NUMBER; hash = (53 * hash) + getInputsList().hashCode(); } if (hasBufferSize()) { hash = (37 * hash) + BUFFER_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBufferSize()); } if (hasDebounceDuration()) { hash = (37 * hash) + DEBOUNCE_DURATION_FIELD_NUMBER; hash = (53 * hash) + getDebounceDuration().hashCode(); } if (hasMaxDelayDuration()) { hash = (37 * hash) + MAX_DELAY_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMaxDelayDuration().hashCode(); } hash = (37 * hash) + UPSERT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUpsert()); if (hasMachineType()) { hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getMachineType().hashCode(); } if (hasDoc()) { hash = (37 * hash) + DOC_FIELD_NUMBER; hash = (53 * hash) + getDoc().hashCode(); } if (hasOwner()) { hash = (37 * hash) + OWNER_FIELD_NUMBER; hash = (53 * hash) + getOwner().hashCode(); } if (getEnvironmentsCount() > 0) { hash = (37 * hash) + ENVIRONMENTS_FIELD_NUMBER; hash = (53 * hash) + getEnvironmentsList().hashCode(); } if (hasTimeoutDuration()) { hash = (37 * hash) + TIMEOUT_DURATION_FIELD_NUMBER; hash = (53 * hash) + getTimeoutDuration().hashCode(); } if (hasFunction()) { hash = (37 * hash) + FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getFunction().hashCode(); } switch (integrationCase_) { case 7: hash = (37 * hash) + STREAM_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getStreamSource().hashCode(); break; case 8: hash = (37 * hash) + DATABASE_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getDatabaseSource().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.SinkResolver parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.SinkResolver 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.graph.v1.SinkResolver parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.SinkResolver 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.graph.v1.SinkResolver parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.SinkResolver parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.SinkResolver parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.SinkResolver 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.graph.v1.SinkResolver parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.SinkResolver 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.graph.v1.SinkResolver parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.SinkResolver 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.graph.v1.SinkResolver 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.graph.v1.SinkResolver} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.SinkResolver) ai.chalk.protos.chalk.graph.v1.SinkResolverOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_SinkResolver_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_SinkResolver_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.SinkResolver.class, ai.chalk.protos.chalk.graph.v1.SinkResolver.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.SinkResolver.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getInputsFieldBuilder(); getDebounceDurationFieldBuilder(); getMaxDelayDurationFieldBuilder(); getTimeoutDurationFieldBuilder(); getFunctionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; fqn_ = ""; if (inputsBuilder_ == null) { inputs_ = java.util.Collections.emptyList(); } else { inputs_ = null; inputsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); bufferSize_ = 0L; debounceDuration_ = null; if (debounceDurationBuilder_ != null) { debounceDurationBuilder_.dispose(); debounceDurationBuilder_ = null; } maxDelayDuration_ = null; if (maxDelayDurationBuilder_ != null) { maxDelayDurationBuilder_.dispose(); maxDelayDurationBuilder_ = null; } upsert_ = false; if (streamSourceBuilder_ != null) { streamSourceBuilder_.clear(); } if (databaseSourceBuilder_ != null) { databaseSourceBuilder_.clear(); } machineType_ = ""; doc_ = ""; owner_ = ""; environments_ = com.google.protobuf.LazyStringArrayList.emptyList(); timeoutDuration_ = null; if (timeoutDurationBuilder_ != null) { timeoutDurationBuilder_.dispose(); timeoutDurationBuilder_ = null; } function_ = null; if (functionBuilder_ != null) { functionBuilder_.dispose(); functionBuilder_ = null; } integrationCase_ = 0; integration_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_SinkResolver_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SinkResolver getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.SinkResolver.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SinkResolver build() { ai.chalk.protos.chalk.graph.v1.SinkResolver result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SinkResolver buildPartial() { ai.chalk.protos.chalk.graph.v1.SinkResolver result = new ai.chalk.protos.chalk.graph.v1.SinkResolver(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.graph.v1.SinkResolver result) { if (inputsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { inputs_ = java.util.Collections.unmodifiableList(inputs_); bitField0_ = (bitField0_ & ~0x00000002); } result.inputs_ = inputs_; } else { result.inputs_ = inputsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.SinkResolver result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.fqn_ = fqn_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.bufferSize_ = bufferSize_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.debounceDuration_ = debounceDurationBuilder_ == null ? debounceDuration_ : debounceDurationBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.maxDelayDuration_ = maxDelayDurationBuilder_ == null ? maxDelayDuration_ : maxDelayDurationBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.upsert_ = upsert_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.machineType_ = machineType_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000200) != 0)) { result.doc_ = doc_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000400) != 0)) { result.owner_ = owner_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000800) != 0)) { environments_.makeImmutable(); result.environments_ = environments_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.timeoutDuration_ = timeoutDurationBuilder_ == null ? timeoutDuration_ : timeoutDurationBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00002000) != 0)) { result.function_ = functionBuilder_ == null ? function_ : functionBuilder_.build(); to_bitField0_ |= 0x00000080; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(ai.chalk.protos.chalk.graph.v1.SinkResolver result) { result.integrationCase_ = integrationCase_; result.integration_ = this.integration_; if (integrationCase_ == 7 && streamSourceBuilder_ != null) { result.integration_ = streamSourceBuilder_.build(); } if (integrationCase_ == 8 && databaseSourceBuilder_ != null) { result.integration_ = databaseSourceBuilder_.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.graph.v1.SinkResolver) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.SinkResolver)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.SinkResolver other) { if (other == ai.chalk.protos.chalk.graph.v1.SinkResolver.getDefaultInstance()) return this; if (!other.getFqn().isEmpty()) { fqn_ = other.fqn_; bitField0_ |= 0x00000001; onChanged(); } if (inputsBuilder_ == null) { if (!other.inputs_.isEmpty()) { if (inputs_.isEmpty()) { inputs_ = other.inputs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureInputsIsMutable(); inputs_.addAll(other.inputs_); } onChanged(); } } else { if (!other.inputs_.isEmpty()) { if (inputsBuilder_.isEmpty()) { inputsBuilder_.dispose(); inputsBuilder_ = null; inputs_ = other.inputs_; bitField0_ = (bitField0_ & ~0x00000002); inputsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInputsFieldBuilder() : null; } else { inputsBuilder_.addAllMessages(other.inputs_); } } } if (other.hasBufferSize()) { setBufferSize(other.getBufferSize()); } if (other.hasDebounceDuration()) { mergeDebounceDuration(other.getDebounceDuration()); } if (other.hasMaxDelayDuration()) { mergeMaxDelayDuration(other.getMaxDelayDuration()); } if (other.getUpsert() != false) { setUpsert(other.getUpsert()); } if (other.hasMachineType()) { machineType_ = other.machineType_; bitField0_ |= 0x00000100; onChanged(); } if (other.hasDoc()) { doc_ = other.doc_; bitField0_ |= 0x00000200; onChanged(); } if (other.hasOwner()) { owner_ = other.owner_; bitField0_ |= 0x00000400; onChanged(); } if (!other.environments_.isEmpty()) { if (environments_.isEmpty()) { environments_ = other.environments_; bitField0_ |= 0x00000800; } else { ensureEnvironmentsIsMutable(); environments_.addAll(other.environments_); } onChanged(); } if (other.hasTimeoutDuration()) { mergeTimeoutDuration(other.getTimeoutDuration()); } if (other.hasFunction()) { mergeFunction(other.getFunction()); } switch (other.getIntegrationCase()) { case STREAM_SOURCE: { mergeStreamSource(other.getStreamSource()); break; } case DATABASE_SOURCE: { mergeDatabaseSource(other.getDatabaseSource()); break; } case INTEGRATION_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: { fqn_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ai.chalk.protos.chalk.graph.v1.ResolverInput m = input.readMessage( ai.chalk.protos.chalk.graph.v1.ResolverInput.parser(), extensionRegistry); if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.add(m); } else { inputsBuilder_.addMessage(m); } break; } // case 18 case 24: { bufferSize_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage( getDebounceDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getMaxDelayDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 48: { upsert_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { input.readMessage( getStreamSourceFieldBuilder().getBuilder(), extensionRegistry); integrationCase_ = 7; break; } // case 58 case 66: { input.readMessage( getDatabaseSourceFieldBuilder().getBuilder(), extensionRegistry); integrationCase_ = 8; break; } // case 66 case 74: { machineType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 74 case 82: { doc_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 82 case 90: { owner_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 case 98: { java.lang.String s = input.readStringRequireUtf8(); ensureEnvironmentsIsMutable(); environments_.add(s); break; } // case 98 case 106: { input.readMessage( getTimeoutDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 106 case 114: { input.readMessage( getFunctionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00002000; break; } // case 114 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 integrationCase_ = 0; private java.lang.Object integration_; public IntegrationCase getIntegrationCase() { return IntegrationCase.forNumber( integrationCase_); } public Builder clearIntegration() { integrationCase_ = 0; integration_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object fqn_ = ""; /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return The fqn. */ public java.lang.String getFqn() { java.lang.Object ref = fqn_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fqn_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return The bytes for fqn. */ public com.google.protobuf.ByteString getFqnBytes() { java.lang.Object ref = fqn_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fqn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @param value The fqn to set. * @return This builder for chaining. */ public Builder setFqn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fqn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return This builder for chaining. */ public Builder clearFqn() { fqn_ = getDefaultInstance().getFqn(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @param value The bytes for fqn to set. * @return This builder for chaining. */ public Builder setFqnBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fqn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List<ai.chalk.protos.chalk.graph.v1.ResolverInput> inputs_ = java.util.Collections.emptyList(); private void ensureInputsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { inputs_ = new java.util.ArrayList<ai.chalk.protos.chalk.graph.v1.ResolverInput>(inputs_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.ResolverInput, ai.chalk.protos.chalk.graph.v1.ResolverInput.Builder, ai.chalk.protos.chalk.graph.v1.ResolverInputOrBuilder> inputsBuilder_; /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public java.util.List<ai.chalk.protos.chalk.graph.v1.ResolverInput> getInputsList() { if (inputsBuilder_ == null) { return java.util.Collections.unmodifiableList(inputs_); } else { return inputsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public int getInputsCount() { if (inputsBuilder_ == null) { return inputs_.size(); } else { return inputsBuilder_.getCount(); } } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public ai.chalk.protos.chalk.graph.v1.ResolverInput getInputs(int index) { if (inputsBuilder_ == null) { return inputs_.get(index); } else { return inputsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public Builder setInputs( int index, ai.chalk.protos.chalk.graph.v1.ResolverInput value) { if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputsIsMutable(); inputs_.set(index, value); onChanged(); } else { inputsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public Builder setInputs( int index, ai.chalk.protos.chalk.graph.v1.ResolverInput.Builder builderForValue) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.set(index, builderForValue.build()); onChanged(); } else { inputsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public Builder addInputs(ai.chalk.protos.chalk.graph.v1.ResolverInput value) { if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputsIsMutable(); inputs_.add(value); onChanged(); } else { inputsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public Builder addInputs( int index, ai.chalk.protos.chalk.graph.v1.ResolverInput value) { if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputsIsMutable(); inputs_.add(index, value); onChanged(); } else { inputsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public Builder addInputs( ai.chalk.protos.chalk.graph.v1.ResolverInput.Builder builderForValue) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.add(builderForValue.build()); onChanged(); } else { inputsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public Builder addInputs( int index, ai.chalk.protos.chalk.graph.v1.ResolverInput.Builder builderForValue) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.add(index, builderForValue.build()); onChanged(); } else { inputsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public Builder addAllInputs( java.lang.Iterable<? extends ai.chalk.protos.chalk.graph.v1.ResolverInput> values) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, inputs_); onChanged(); } else { inputsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public Builder clearInputs() { if (inputsBuilder_ == null) { inputs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { inputsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public Builder removeInputs(int index) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.remove(index); onChanged(); } else { inputsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public ai.chalk.protos.chalk.graph.v1.ResolverInput.Builder getInputsBuilder( int index) { return getInputsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public ai.chalk.protos.chalk.graph.v1.ResolverInputOrBuilder getInputsOrBuilder( int index) { if (inputsBuilder_ == null) { return inputs_.get(index); } else { return inputsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.graph.v1.ResolverInputOrBuilder> getInputsOrBuilderList() { if (inputsBuilder_ != null) { return inputsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(inputs_); } } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public ai.chalk.protos.chalk.graph.v1.ResolverInput.Builder addInputsBuilder() { return getInputsFieldBuilder().addBuilder( ai.chalk.protos.chalk.graph.v1.ResolverInput.getDefaultInstance()); } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public ai.chalk.protos.chalk.graph.v1.ResolverInput.Builder addInputsBuilder( int index) { return getInputsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.graph.v1.ResolverInput.getDefaultInstance()); } /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ public java.util.List<ai.chalk.protos.chalk.graph.v1.ResolverInput.Builder> getInputsBuilderList() { return getInputsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.ResolverInput, ai.chalk.protos.chalk.graph.v1.ResolverInput.Builder, ai.chalk.protos.chalk.graph.v1.ResolverInputOrBuilder> getInputsFieldBuilder() { if (inputsBuilder_ == null) { inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.ResolverInput, ai.chalk.protos.chalk.graph.v1.ResolverInput.Builder, ai.chalk.protos.chalk.graph.v1.ResolverInputOrBuilder>( inputs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); inputs_ = null; } return inputsBuilder_; } private long bufferSize_ ; /** * <code>optional uint64 buffer_size = 3 [json_name = "bufferSize"];</code> * @return Whether the bufferSize field is set. */ @java.lang.Override public boolean hasBufferSize() { return ((bitField0_ & 0x00000004) != 0); } /** * <code>optional uint64 buffer_size = 3 [json_name = "bufferSize"];</code> * @return The bufferSize. */ @java.lang.Override public long getBufferSize() { return bufferSize_; } /** * <code>optional uint64 buffer_size = 3 [json_name = "bufferSize"];</code> * @param value The bufferSize to set. * @return This builder for chaining. */ public Builder setBufferSize(long value) { bufferSize_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>optional uint64 buffer_size = 3 [json_name = "bufferSize"];</code> * @return This builder for chaining. */ public Builder clearBufferSize() { bitField0_ = (bitField0_ & ~0x00000004); bufferSize_ = 0L; onChanged(); return this; } private com.google.protobuf.Duration debounceDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> debounceDurationBuilder_; /** * <code>.google.protobuf.Duration debounce_duration = 4 [json_name = "debounceDuration"];</code> * @return Whether the debounceDuration field is set. */ public boolean hasDebounceDuration() { return ((bitField0_ & 0x00000008) != 0); } /** * <code>.google.protobuf.Duration debounce_duration = 4 [json_name = "debounceDuration"];</code> * @return The debounceDuration. */ public com.google.protobuf.Duration getDebounceDuration() { if (debounceDurationBuilder_ == null) { return debounceDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : debounceDuration_; } else { return debounceDurationBuilder_.getMessage(); } } /** * <code>.google.protobuf.Duration debounce_duration = 4 [json_name = "debounceDuration"];</code> */ public Builder setDebounceDuration(com.google.protobuf.Duration value) { if (debounceDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } debounceDuration_ = value; } else { debounceDurationBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>.google.protobuf.Duration debounce_duration = 4 [json_name = "debounceDuration"];</code> */ public Builder setDebounceDuration( com.google.protobuf.Duration.Builder builderForValue) { if (debounceDurationBuilder_ == null) { debounceDuration_ = builderForValue.build(); } else { debounceDurationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>.google.protobuf.Duration debounce_duration = 4 [json_name = "debounceDuration"];</code> */ public Builder mergeDebounceDuration(com.google.protobuf.Duration value) { if (debounceDurationBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && debounceDuration_ != null && debounceDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDebounceDurationBuilder().mergeFrom(value); } else { debounceDuration_ = value; } } else { debounceDurationBuilder_.mergeFrom(value); } if (debounceDuration_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * <code>.google.protobuf.Duration debounce_duration = 4 [json_name = "debounceDuration"];</code> */ public Builder clearDebounceDuration() { bitField0_ = (bitField0_ & ~0x00000008); debounceDuration_ = null; if (debounceDurationBuilder_ != null) { debounceDurationBuilder_.dispose(); debounceDurationBuilder_ = null; } onChanged(); return this; } /** * <code>.google.protobuf.Duration debounce_duration = 4 [json_name = "debounceDuration"];</code> */ public com.google.protobuf.Duration.Builder getDebounceDurationBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDebounceDurationFieldBuilder().getBuilder(); } /** * <code>.google.protobuf.Duration debounce_duration = 4 [json_name = "debounceDuration"];</code> */ public com.google.protobuf.DurationOrBuilder getDebounceDurationOrBuilder() { if (debounceDurationBuilder_ != null) { return debounceDurationBuilder_.getMessageOrBuilder(); } else { return debounceDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : debounceDuration_; } } /** * <code>.google.protobuf.Duration debounce_duration = 4 [json_name = "debounceDuration"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDebounceDurationFieldBuilder() { if (debounceDurationBuilder_ == null) { debounceDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getDebounceDuration(), getParentForChildren(), isClean()); debounceDuration_ = null; } return debounceDurationBuilder_; } private com.google.protobuf.Duration maxDelayDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxDelayDurationBuilder_; /** * <code>.google.protobuf.Duration max_delay_duration = 5 [json_name = "maxDelayDuration"];</code> * @return Whether the maxDelayDuration field is set. */ public boolean hasMaxDelayDuration() { return ((bitField0_ & 0x00000010) != 0); } /** * <code>.google.protobuf.Duration max_delay_duration = 5 [json_name = "maxDelayDuration"];</code> * @return The maxDelayDuration. */ public com.google.protobuf.Duration getMaxDelayDuration() { if (maxDelayDurationBuilder_ == null) { return maxDelayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDelayDuration_; } else { return maxDelayDurationBuilder_.getMessage(); } } /** * <code>.google.protobuf.Duration max_delay_duration = 5 [json_name = "maxDelayDuration"];</code> */ public Builder setMaxDelayDuration(com.google.protobuf.Duration value) { if (maxDelayDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxDelayDuration_ = value; } else { maxDelayDurationBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>.google.protobuf.Duration max_delay_duration = 5 [json_name = "maxDelayDuration"];</code> */ public Builder setMaxDelayDuration( com.google.protobuf.Duration.Builder builderForValue) { if (maxDelayDurationBuilder_ == null) { maxDelayDuration_ = builderForValue.build(); } else { maxDelayDurationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>.google.protobuf.Duration max_delay_duration = 5 [json_name = "maxDelayDuration"];</code> */ public Builder mergeMaxDelayDuration(com.google.protobuf.Duration value) { if (maxDelayDurationBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && maxDelayDuration_ != null && maxDelayDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxDelayDurationBuilder().mergeFrom(value); } else { maxDelayDuration_ = value; } } else { maxDelayDurationBuilder_.mergeFrom(value); } if (maxDelayDuration_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * <code>.google.protobuf.Duration max_delay_duration = 5 [json_name = "maxDelayDuration"];</code> */ public Builder clearMaxDelayDuration() { bitField0_ = (bitField0_ & ~0x00000010); maxDelayDuration_ = null; if (maxDelayDurationBuilder_ != null) { maxDelayDurationBuilder_.dispose(); maxDelayDurationBuilder_ = null; } onChanged(); return this; } /** * <code>.google.protobuf.Duration max_delay_duration = 5 [json_name = "maxDelayDuration"];</code> */ public com.google.protobuf.Duration.Builder getMaxDelayDurationBuilder() { bitField0_ |= 0x00000010; onChanged(); return getMaxDelayDurationFieldBuilder().getBuilder(); } /** * <code>.google.protobuf.Duration max_delay_duration = 5 [json_name = "maxDelayDuration"];</code> */ public com.google.protobuf.DurationOrBuilder getMaxDelayDurationOrBuilder() { if (maxDelayDurationBuilder_ != null) { return maxDelayDurationBuilder_.getMessageOrBuilder(); } else { return maxDelayDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDelayDuration_; } } /** * <code>.google.protobuf.Duration max_delay_duration = 5 [json_name = "maxDelayDuration"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxDelayDurationFieldBuilder() { if (maxDelayDurationBuilder_ == null) { maxDelayDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxDelayDuration(), getParentForChildren(), isClean()); maxDelayDuration_ = null; } return maxDelayDurationBuilder_; } private boolean upsert_ ; /** * <code>bool upsert = 6 [json_name = "upsert"];</code> * @return The upsert. */ @java.lang.Override public boolean getUpsert() { return upsert_; } /** * <code>bool upsert = 6 [json_name = "upsert"];</code> * @param value The upsert to set. * @return This builder for chaining. */ public Builder setUpsert(boolean value) { upsert_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>bool upsert = 6 [json_name = "upsert"];</code> * @return This builder for chaining. */ public Builder clearUpsert() { bitField0_ = (bitField0_ & ~0x00000020); upsert_ = false; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamSourceReference, ai.chalk.protos.chalk.graph.v1.StreamSourceReference.Builder, ai.chalk.protos.chalk.graph.v1.StreamSourceReferenceOrBuilder> streamSourceBuilder_; /** * <code>.chalk.graph.v1.StreamSourceReference stream_source = 7 [json_name = "streamSource"];</code> * @return Whether the streamSource field is set. */ @java.lang.Override public boolean hasStreamSource() { return integrationCase_ == 7; } /** * <code>.chalk.graph.v1.StreamSourceReference stream_source = 7 [json_name = "streamSource"];</code> * @return The streamSource. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSourceReference getStreamSource() { if (streamSourceBuilder_ == null) { if (integrationCase_ == 7) { return (ai.chalk.protos.chalk.graph.v1.StreamSourceReference) integration_; } return ai.chalk.protos.chalk.graph.v1.StreamSourceReference.getDefaultInstance(); } else { if (integrationCase_ == 7) { return streamSourceBuilder_.getMessage(); } return ai.chalk.protos.chalk.graph.v1.StreamSourceReference.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.StreamSourceReference stream_source = 7 [json_name = "streamSource"];</code> */ public Builder setStreamSource(ai.chalk.protos.chalk.graph.v1.StreamSourceReference value) { if (streamSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } integration_ = value; onChanged(); } else { streamSourceBuilder_.setMessage(value); } integrationCase_ = 7; return this; } /** * <code>.chalk.graph.v1.StreamSourceReference stream_source = 7 [json_name = "streamSource"];</code> */ public Builder setStreamSource( ai.chalk.protos.chalk.graph.v1.StreamSourceReference.Builder builderForValue) { if (streamSourceBuilder_ == null) { integration_ = builderForValue.build(); onChanged(); } else { streamSourceBuilder_.setMessage(builderForValue.build()); } integrationCase_ = 7; return this; } /** * <code>.chalk.graph.v1.StreamSourceReference stream_source = 7 [json_name = "streamSource"];</code> */ public Builder mergeStreamSource(ai.chalk.protos.chalk.graph.v1.StreamSourceReference value) { if (streamSourceBuilder_ == null) { if (integrationCase_ == 7 && integration_ != ai.chalk.protos.chalk.graph.v1.StreamSourceReference.getDefaultInstance()) { integration_ = ai.chalk.protos.chalk.graph.v1.StreamSourceReference.newBuilder((ai.chalk.protos.chalk.graph.v1.StreamSourceReference) integration_) .mergeFrom(value).buildPartial(); } else { integration_ = value; } onChanged(); } else { if (integrationCase_ == 7) { streamSourceBuilder_.mergeFrom(value); } else { streamSourceBuilder_.setMessage(value); } } integrationCase_ = 7; return this; } /** * <code>.chalk.graph.v1.StreamSourceReference stream_source = 7 [json_name = "streamSource"];</code> */ public Builder clearStreamSource() { if (streamSourceBuilder_ == null) { if (integrationCase_ == 7) { integrationCase_ = 0; integration_ = null; onChanged(); } } else { if (integrationCase_ == 7) { integrationCase_ = 0; integration_ = null; } streamSourceBuilder_.clear(); } return this; } /** * <code>.chalk.graph.v1.StreamSourceReference stream_source = 7 [json_name = "streamSource"];</code> */ public ai.chalk.protos.chalk.graph.v1.StreamSourceReference.Builder getStreamSourceBuilder() { return getStreamSourceFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.StreamSourceReference stream_source = 7 [json_name = "streamSource"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSourceReferenceOrBuilder getStreamSourceOrBuilder() { if ((integrationCase_ == 7) && (streamSourceBuilder_ != null)) { return streamSourceBuilder_.getMessageOrBuilder(); } else { if (integrationCase_ == 7) { return (ai.chalk.protos.chalk.graph.v1.StreamSourceReference) integration_; } return ai.chalk.protos.chalk.graph.v1.StreamSourceReference.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.StreamSourceReference stream_source = 7 [json_name = "streamSource"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamSourceReference, ai.chalk.protos.chalk.graph.v1.StreamSourceReference.Builder, ai.chalk.protos.chalk.graph.v1.StreamSourceReferenceOrBuilder> getStreamSourceFieldBuilder() { if (streamSourceBuilder_ == null) { if (!(integrationCase_ == 7)) { integration_ = ai.chalk.protos.chalk.graph.v1.StreamSourceReference.getDefaultInstance(); } streamSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamSourceReference, ai.chalk.protos.chalk.graph.v1.StreamSourceReference.Builder, ai.chalk.protos.chalk.graph.v1.StreamSourceReferenceOrBuilder>( (ai.chalk.protos.chalk.graph.v1.StreamSourceReference) integration_, getParentForChildren(), isClean()); integration_ = null; } integrationCase_ = 7; onChanged(); return streamSourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference, ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference.Builder, ai.chalk.protos.chalk.graph.v1.DatabaseSourceReferenceOrBuilder> databaseSourceBuilder_; /** * <code>.chalk.graph.v1.DatabaseSourceReference database_source = 8 [json_name = "databaseSource"];</code> * @return Whether the databaseSource field is set. */ @java.lang.Override public boolean hasDatabaseSource() { return integrationCase_ == 8; } /** * <code>.chalk.graph.v1.DatabaseSourceReference database_source = 8 [json_name = "databaseSource"];</code> * @return The databaseSource. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference getDatabaseSource() { if (databaseSourceBuilder_ == null) { if (integrationCase_ == 8) { return (ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference) integration_; } return ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference.getDefaultInstance(); } else { if (integrationCase_ == 8) { return databaseSourceBuilder_.getMessage(); } return ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.DatabaseSourceReference database_source = 8 [json_name = "databaseSource"];</code> */ public Builder setDatabaseSource(ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference value) { if (databaseSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } integration_ = value; onChanged(); } else { databaseSourceBuilder_.setMessage(value); } integrationCase_ = 8; return this; } /** * <code>.chalk.graph.v1.DatabaseSourceReference database_source = 8 [json_name = "databaseSource"];</code> */ public Builder setDatabaseSource( ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference.Builder builderForValue) { if (databaseSourceBuilder_ == null) { integration_ = builderForValue.build(); onChanged(); } else { databaseSourceBuilder_.setMessage(builderForValue.build()); } integrationCase_ = 8; return this; } /** * <code>.chalk.graph.v1.DatabaseSourceReference database_source = 8 [json_name = "databaseSource"];</code> */ public Builder mergeDatabaseSource(ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference value) { if (databaseSourceBuilder_ == null) { if (integrationCase_ == 8 && integration_ != ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference.getDefaultInstance()) { integration_ = ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference.newBuilder((ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference) integration_) .mergeFrom(value).buildPartial(); } else { integration_ = value; } onChanged(); } else { if (integrationCase_ == 8) { databaseSourceBuilder_.mergeFrom(value); } else { databaseSourceBuilder_.setMessage(value); } } integrationCase_ = 8; return this; } /** * <code>.chalk.graph.v1.DatabaseSourceReference database_source = 8 [json_name = "databaseSource"];</code> */ public Builder clearDatabaseSource() { if (databaseSourceBuilder_ == null) { if (integrationCase_ == 8) { integrationCase_ = 0; integration_ = null; onChanged(); } } else { if (integrationCase_ == 8) { integrationCase_ = 0; integration_ = null; } databaseSourceBuilder_.clear(); } return this; } /** * <code>.chalk.graph.v1.DatabaseSourceReference database_source = 8 [json_name = "databaseSource"];</code> */ public ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference.Builder getDatabaseSourceBuilder() { return getDatabaseSourceFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.DatabaseSourceReference database_source = 8 [json_name = "databaseSource"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.DatabaseSourceReferenceOrBuilder getDatabaseSourceOrBuilder() { if ((integrationCase_ == 8) && (databaseSourceBuilder_ != null)) { return databaseSourceBuilder_.getMessageOrBuilder(); } else { if (integrationCase_ == 8) { return (ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference) integration_; } return ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.DatabaseSourceReference database_source = 8 [json_name = "databaseSource"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference, ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference.Builder, ai.chalk.protos.chalk.graph.v1.DatabaseSourceReferenceOrBuilder> getDatabaseSourceFieldBuilder() { if (databaseSourceBuilder_ == null) { if (!(integrationCase_ == 8)) { integration_ = ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference.getDefaultInstance(); } databaseSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference, ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference.Builder, ai.chalk.protos.chalk.graph.v1.DatabaseSourceReferenceOrBuilder>( (ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference) integration_, getParentForChildren(), isClean()); integration_ = null; } integrationCase_ = 8; onChanged(); return databaseSourceBuilder_; } private java.lang.Object machineType_ = ""; /** * <code>optional string machine_type = 9 [json_name = "machineType"];</code> * @return Whether the machineType field is set. */ public boolean hasMachineType() { return ((bitField0_ & 0x00000100) != 0); } /** * <code>optional string machine_type = 9 [json_name = "machineType"];</code> * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string machine_type = 9 [json_name = "machineType"];</code> * @return The bytes for machineType. */ public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); machineType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string machine_type = 9 [json_name = "machineType"];</code> * @param value The machineType to set. * @return This builder for chaining. */ public Builder setMachineType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } machineType_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * <code>optional string machine_type = 9 [json_name = "machineType"];</code> * @return This builder for chaining. */ public Builder clearMachineType() { machineType_ = getDefaultInstance().getMachineType(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * <code>optional string machine_type = 9 [json_name = "machineType"];</code> * @param value The bytes for machineType to set. * @return This builder for chaining. */ public Builder setMachineTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); machineType_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } private java.lang.Object doc_ = ""; /** * <code>optional string doc = 10 [json_name = "doc"];</code> * @return Whether the doc field is set. */ public boolean hasDoc() { return ((bitField0_ & 0x00000200) != 0); } /** * <code>optional string doc = 10 [json_name = "doc"];</code> * @return The doc. */ public java.lang.String getDoc() { java.lang.Object ref = doc_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); doc_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string doc = 10 [json_name = "doc"];</code> * @return The bytes for doc. */ public com.google.protobuf.ByteString getDocBytes() { java.lang.Object ref = doc_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); doc_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string doc = 10 [json_name = "doc"];</code> * @param value The doc to set. * @return This builder for chaining. */ public Builder setDoc( java.lang.String value) { if (value == null) { throw new NullPointerException(); } doc_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * <code>optional string doc = 10 [json_name = "doc"];</code> * @return This builder for chaining. */ public Builder clearDoc() { doc_ = getDefaultInstance().getDoc(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * <code>optional string doc = 10 [json_name = "doc"];</code> * @param value The bytes for doc to set. * @return This builder for chaining. */ public Builder setDocBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); doc_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } private java.lang.Object owner_ = ""; /** * <code>optional string owner = 11 [json_name = "owner"];</code> * @return Whether the owner field is set. */ public boolean hasOwner() { return ((bitField0_ & 0x00000400) != 0); } /** * <code>optional string owner = 11 [json_name = "owner"];</code> * @return The owner. */ public java.lang.String getOwner() { java.lang.Object ref = owner_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); owner_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string owner = 11 [json_name = "owner"];</code> * @return The bytes for owner. */ public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string owner = 11 [json_name = "owner"];</code> * @param value The owner to set. * @return This builder for chaining. */ public Builder setOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } owner_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * <code>optional string owner = 11 [json_name = "owner"];</code> * @return This builder for chaining. */ public Builder clearOwner() { owner_ = getDefaultInstance().getOwner(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * <code>optional string owner = 11 [json_name = "owner"];</code> * @param value The bytes for owner to set. * @return This builder for chaining. */ public Builder setOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); owner_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList environments_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureEnvironmentsIsMutable() { if (!environments_.isModifiable()) { environments_ = new com.google.protobuf.LazyStringArrayList(environments_); } bitField0_ |= 0x00000800; } /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @return A list containing the environments. */ public com.google.protobuf.ProtocolStringList getEnvironmentsList() { environments_.makeImmutable(); return environments_; } /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @return The count of environments. */ public int getEnvironmentsCount() { return environments_.size(); } /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @param index The index of the element to return. * @return The environments at the given index. */ public java.lang.String getEnvironments(int index) { return environments_.get(index); } /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @param index The index of the value to return. * @return The bytes of the environments at the given index. */ public com.google.protobuf.ByteString getEnvironmentsBytes(int index) { return environments_.getByteString(index); } /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @param index The index to set the value at. * @param value The environments to set. * @return This builder for chaining. */ public Builder setEnvironments( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEnvironmentsIsMutable(); environments_.set(index, value); bitField0_ |= 0x00000800; onChanged(); return this; } /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @param value The environments to add. * @return This builder for chaining. */ public Builder addEnvironments( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEnvironmentsIsMutable(); environments_.add(value); bitField0_ |= 0x00000800; onChanged(); return this; } /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @param values The environments to add. * @return This builder for chaining. */ public Builder addAllEnvironments( java.lang.Iterable<java.lang.String> values) { ensureEnvironmentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, environments_); bitField0_ |= 0x00000800; onChanged(); return this; } /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @return This builder for chaining. */ public Builder clearEnvironments() { environments_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000800);; onChanged(); return this; } /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @param value The bytes of the environments to add. * @return This builder for chaining. */ public Builder addEnvironmentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEnvironmentsIsMutable(); environments_.add(value); bitField0_ |= 0x00000800; onChanged(); return this; } private com.google.protobuf.Duration timeoutDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutDurationBuilder_; /** * <code>.google.protobuf.Duration timeout_duration = 13 [json_name = "timeoutDuration"];</code> * @return Whether the timeoutDuration field is set. */ public boolean hasTimeoutDuration() { return ((bitField0_ & 0x00001000) != 0); } /** * <code>.google.protobuf.Duration timeout_duration = 13 [json_name = "timeoutDuration"];</code> * @return The timeoutDuration. */ public com.google.protobuf.Duration getTimeoutDuration() { if (timeoutDurationBuilder_ == null) { return timeoutDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeoutDuration_; } else { return timeoutDurationBuilder_.getMessage(); } } /** * <code>.google.protobuf.Duration timeout_duration = 13 [json_name = "timeoutDuration"];</code> */ public Builder setTimeoutDuration(com.google.protobuf.Duration value) { if (timeoutDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timeoutDuration_ = value; } else { timeoutDurationBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * <code>.google.protobuf.Duration timeout_duration = 13 [json_name = "timeoutDuration"];</code> */ public Builder setTimeoutDuration( com.google.protobuf.Duration.Builder builderForValue) { if (timeoutDurationBuilder_ == null) { timeoutDuration_ = builderForValue.build(); } else { timeoutDurationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * <code>.google.protobuf.Duration timeout_duration = 13 [json_name = "timeoutDuration"];</code> */ public Builder mergeTimeoutDuration(com.google.protobuf.Duration value) { if (timeoutDurationBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && timeoutDuration_ != null && timeoutDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getTimeoutDurationBuilder().mergeFrom(value); } else { timeoutDuration_ = value; } } else { timeoutDurationBuilder_.mergeFrom(value); } if (timeoutDuration_ != null) { bitField0_ |= 0x00001000; onChanged(); } return this; } /** * <code>.google.protobuf.Duration timeout_duration = 13 [json_name = "timeoutDuration"];</code> */ public Builder clearTimeoutDuration() { bitField0_ = (bitField0_ & ~0x00001000); timeoutDuration_ = null; if (timeoutDurationBuilder_ != null) { timeoutDurationBuilder_.dispose(); timeoutDurationBuilder_ = null; } onChanged(); return this; } /** * <code>.google.protobuf.Duration timeout_duration = 13 [json_name = "timeoutDuration"];</code> */ public com.google.protobuf.Duration.Builder getTimeoutDurationBuilder() { bitField0_ |= 0x00001000; onChanged(); return getTimeoutDurationFieldBuilder().getBuilder(); } /** * <code>.google.protobuf.Duration timeout_duration = 13 [json_name = "timeoutDuration"];</code> */ public com.google.protobuf.DurationOrBuilder getTimeoutDurationOrBuilder() { if (timeoutDurationBuilder_ != null) { return timeoutDurationBuilder_.getMessageOrBuilder(); } else { return timeoutDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeoutDuration_; } } /** * <code>.google.protobuf.Duration timeout_duration = 13 [json_name = "timeoutDuration"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTimeoutDurationFieldBuilder() { if (timeoutDurationBuilder_ == null) { timeoutDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getTimeoutDuration(), getParentForChildren(), isClean()); timeoutDuration_ = null; } return timeoutDurationBuilder_; } private ai.chalk.protos.chalk.graph.v1.FunctionReference function_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FunctionReference, ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder, ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder> functionBuilder_; /** * <code>.chalk.graph.v1.FunctionReference function = 14 [json_name = "function"];</code> * @return Whether the function field is set. */ public boolean hasFunction() { return ((bitField0_ & 0x00002000) != 0); } /** * <code>.chalk.graph.v1.FunctionReference function = 14 [json_name = "function"];</code> * @return The function. */ public ai.chalk.protos.chalk.graph.v1.FunctionReference getFunction() { if (functionBuilder_ == null) { return function_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : function_; } else { return functionBuilder_.getMessage(); } } /** * <code>.chalk.graph.v1.FunctionReference function = 14 [json_name = "function"];</code> */ public Builder setFunction(ai.chalk.protos.chalk.graph.v1.FunctionReference value) { if (functionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } function_ = value; } else { functionBuilder_.setMessage(value); } bitField0_ |= 0x00002000; onChanged(); return this; } /** * <code>.chalk.graph.v1.FunctionReference function = 14 [json_name = "function"];</code> */ public Builder setFunction( ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder builderForValue) { if (functionBuilder_ == null) { function_ = builderForValue.build(); } else { functionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; onChanged(); return this; } /** * <code>.chalk.graph.v1.FunctionReference function = 14 [json_name = "function"];</code> */ public Builder mergeFunction(ai.chalk.protos.chalk.graph.v1.FunctionReference value) { if (functionBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0) && function_ != null && function_ != ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance()) { getFunctionBuilder().mergeFrom(value); } else { function_ = value; } } else { functionBuilder_.mergeFrom(value); } if (function_ != null) { bitField0_ |= 0x00002000; onChanged(); } return this; } /** * <code>.chalk.graph.v1.FunctionReference function = 14 [json_name = "function"];</code> */ public Builder clearFunction() { bitField0_ = (bitField0_ & ~0x00002000); function_ = null; if (functionBuilder_ != null) { functionBuilder_.dispose(); functionBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.graph.v1.FunctionReference function = 14 [json_name = "function"];</code> */ public ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder getFunctionBuilder() { bitField0_ |= 0x00002000; onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.FunctionReference function = 14 [json_name = "function"];</code> */ public ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { return function_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : function_; } } /** * <code>.chalk.graph.v1.FunctionReference function = 14 [json_name = "function"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FunctionReference, ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder, ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FunctionReference, ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder, ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder>( getFunction(), getParentForChildren(), isClean()); function_ = null; } return functionBuilder_; } @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.graph.v1.SinkResolver) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.SinkResolver) private static final ai.chalk.protos.chalk.graph.v1.SinkResolver DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.SinkResolver(); } public static ai.chalk.protos.chalk.graph.v1.SinkResolver getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<SinkResolver> PARSER = new com.google.protobuf.AbstractParser<SinkResolver>() { @java.lang.Override public SinkResolver 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<SinkResolver> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<SinkResolver> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SinkResolver getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/SinkResolverOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface SinkResolverOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.SinkResolver) com.google.protobuf.MessageOrBuilder { /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return The fqn. */ java.lang.String getFqn(); /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return The bytes for fqn. */ com.google.protobuf.ByteString getFqnBytes(); /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ java.util.List<ai.chalk.protos.chalk.graph.v1.ResolverInput> getInputsList(); /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ ai.chalk.protos.chalk.graph.v1.ResolverInput getInputs(int index); /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ int getInputsCount(); /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.graph.v1.ResolverInputOrBuilder> getInputsOrBuilderList(); /** * <code>repeated .chalk.graph.v1.ResolverInput inputs = 2 [json_name = "inputs"];</code> */ ai.chalk.protos.chalk.graph.v1.ResolverInputOrBuilder getInputsOrBuilder( int index); /** * <code>optional uint64 buffer_size = 3 [json_name = "bufferSize"];</code> * @return Whether the bufferSize field is set. */ boolean hasBufferSize(); /** * <code>optional uint64 buffer_size = 3 [json_name = "bufferSize"];</code> * @return The bufferSize. */ long getBufferSize(); /** * <code>.google.protobuf.Duration debounce_duration = 4 [json_name = "debounceDuration"];</code> * @return Whether the debounceDuration field is set. */ boolean hasDebounceDuration(); /** * <code>.google.protobuf.Duration debounce_duration = 4 [json_name = "debounceDuration"];</code> * @return The debounceDuration. */ com.google.protobuf.Duration getDebounceDuration(); /** * <code>.google.protobuf.Duration debounce_duration = 4 [json_name = "debounceDuration"];</code> */ com.google.protobuf.DurationOrBuilder getDebounceDurationOrBuilder(); /** * <code>.google.protobuf.Duration max_delay_duration = 5 [json_name = "maxDelayDuration"];</code> * @return Whether the maxDelayDuration field is set. */ boolean hasMaxDelayDuration(); /** * <code>.google.protobuf.Duration max_delay_duration = 5 [json_name = "maxDelayDuration"];</code> * @return The maxDelayDuration. */ com.google.protobuf.Duration getMaxDelayDuration(); /** * <code>.google.protobuf.Duration max_delay_duration = 5 [json_name = "maxDelayDuration"];</code> */ com.google.protobuf.DurationOrBuilder getMaxDelayDurationOrBuilder(); /** * <code>bool upsert = 6 [json_name = "upsert"];</code> * @return The upsert. */ boolean getUpsert(); /** * <code>.chalk.graph.v1.StreamSourceReference stream_source = 7 [json_name = "streamSource"];</code> * @return Whether the streamSource field is set. */ boolean hasStreamSource(); /** * <code>.chalk.graph.v1.StreamSourceReference stream_source = 7 [json_name = "streamSource"];</code> * @return The streamSource. */ ai.chalk.protos.chalk.graph.v1.StreamSourceReference getStreamSource(); /** * <code>.chalk.graph.v1.StreamSourceReference stream_source = 7 [json_name = "streamSource"];</code> */ ai.chalk.protos.chalk.graph.v1.StreamSourceReferenceOrBuilder getStreamSourceOrBuilder(); /** * <code>.chalk.graph.v1.DatabaseSourceReference database_source = 8 [json_name = "databaseSource"];</code> * @return Whether the databaseSource field is set. */ boolean hasDatabaseSource(); /** * <code>.chalk.graph.v1.DatabaseSourceReference database_source = 8 [json_name = "databaseSource"];</code> * @return The databaseSource. */ ai.chalk.protos.chalk.graph.v1.DatabaseSourceReference getDatabaseSource(); /** * <code>.chalk.graph.v1.DatabaseSourceReference database_source = 8 [json_name = "databaseSource"];</code> */ ai.chalk.protos.chalk.graph.v1.DatabaseSourceReferenceOrBuilder getDatabaseSourceOrBuilder(); /** * <code>optional string machine_type = 9 [json_name = "machineType"];</code> * @return Whether the machineType field is set. */ boolean hasMachineType(); /** * <code>optional string machine_type = 9 [json_name = "machineType"];</code> * @return The machineType. */ java.lang.String getMachineType(); /** * <code>optional string machine_type = 9 [json_name = "machineType"];</code> * @return The bytes for machineType. */ com.google.protobuf.ByteString getMachineTypeBytes(); /** * <code>optional string doc = 10 [json_name = "doc"];</code> * @return Whether the doc field is set. */ boolean hasDoc(); /** * <code>optional string doc = 10 [json_name = "doc"];</code> * @return The doc. */ java.lang.String getDoc(); /** * <code>optional string doc = 10 [json_name = "doc"];</code> * @return The bytes for doc. */ com.google.protobuf.ByteString getDocBytes(); /** * <code>optional string owner = 11 [json_name = "owner"];</code> * @return Whether the owner field is set. */ boolean hasOwner(); /** * <code>optional string owner = 11 [json_name = "owner"];</code> * @return The owner. */ java.lang.String getOwner(); /** * <code>optional string owner = 11 [json_name = "owner"];</code> * @return The bytes for owner. */ com.google.protobuf.ByteString getOwnerBytes(); /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @return A list containing the environments. */ java.util.List<java.lang.String> getEnvironmentsList(); /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @return The count of environments. */ int getEnvironmentsCount(); /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @param index The index of the element to return. * @return The environments at the given index. */ java.lang.String getEnvironments(int index); /** * <code>repeated string environments = 12 [json_name = "environments"];</code> * @param index The index of the value to return. * @return The bytes of the environments at the given index. */ com.google.protobuf.ByteString getEnvironmentsBytes(int index); /** * <code>.google.protobuf.Duration timeout_duration = 13 [json_name = "timeoutDuration"];</code> * @return Whether the timeoutDuration field is set. */ boolean hasTimeoutDuration(); /** * <code>.google.protobuf.Duration timeout_duration = 13 [json_name = "timeoutDuration"];</code> * @return The timeoutDuration. */ com.google.protobuf.Duration getTimeoutDuration(); /** * <code>.google.protobuf.Duration timeout_duration = 13 [json_name = "timeoutDuration"];</code> */ com.google.protobuf.DurationOrBuilder getTimeoutDurationOrBuilder(); /** * <code>.chalk.graph.v1.FunctionReference function = 14 [json_name = "function"];</code> * @return Whether the function field is set. */ boolean hasFunction(); /** * <code>.chalk.graph.v1.FunctionReference function = 14 [json_name = "function"];</code> * @return The function. */ ai.chalk.protos.chalk.graph.v1.FunctionReference getFunction(); /** * <code>.chalk.graph.v1.FunctionReference function = 14 [json_name = "function"];</code> */ ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder getFunctionOrBuilder(); ai.chalk.protos.chalk.graph.v1.SinkResolver.IntegrationCase getIntegrationCase(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/SnowflakeSource.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/sources.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.SnowflakeSource} */ public final class SnowflakeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.SnowflakeSource) SnowflakeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use SnowflakeSource.newBuilder() to construct. private SnowflakeSource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private SnowflakeSource() { name_ = ""; db_ = ""; schema_ = ""; role_ = ""; user_ = ""; password_ = ""; accountIdentifier_ = ""; warehouse_ = ""; privateKeyB64_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SnowflakeSource(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SnowflakeSource_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 9: return internalGetEngineArgs(); case 10: return internalGetAsyncEngineArgs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SnowflakeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.SnowflakeSource.class, ai.chalk.protos.chalk.graph.v1.SnowflakeSource.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 DB_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object db_ = ""; /** * <code>string db = 2 [json_name = "db"];</code> * @return The db. */ @java.lang.Override public java.lang.String getDb() { java.lang.Object ref = db_; 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(); db_ = s; return s; } } /** * <code>string db = 2 [json_name = "db"];</code> * @return The bytes for db. */ @java.lang.Override public com.google.protobuf.ByteString getDbBytes() { java.lang.Object ref = db_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); db_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCHEMA_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** * <code>string schema = 3 [json_name = "schema"];</code> * @return The schema. */ @java.lang.Override public java.lang.String getSchema() { java.lang.Object ref = schema_; 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(); schema_ = s; return s; } } /** * <code>string schema = 3 [json_name = "schema"];</code> * @return The bytes for schema. */ @java.lang.Override public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schema_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ROLE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object role_ = ""; /** * <code>string role = 4 [json_name = "role"];</code> * @return The role. */ @java.lang.Override public java.lang.String getRole() { java.lang.Object ref = role_; 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(); role_ = s; return s; } } /** * <code>string role = 4 [json_name = "role"];</code> * @return The bytes for role. */ @java.lang.Override public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object user_ = ""; /** * <code>string user = 5 [json_name = "user"];</code> * @return The user. */ @java.lang.Override public java.lang.String getUser() { java.lang.Object ref = user_; 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(); user_ = s; return s; } } /** * <code>string user = 5 [json_name = "user"];</code> * @return The bytes for user. */ @java.lang.Override public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORD_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** * <code>string password = 6 [json_name = "password"];</code> * @return The password. */ @java.lang.Override public java.lang.String getPassword() { java.lang.Object ref = password_; 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(); password_ = s; return s; } } /** * <code>string password = 6 [json_name = "password"];</code> * @return The bytes for password. */ @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACCOUNT_IDENTIFIER_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object accountIdentifier_ = ""; /** * <code>string account_identifier = 7 [json_name = "accountIdentifier"];</code> * @return The accountIdentifier. */ @java.lang.Override public java.lang.String getAccountIdentifier() { java.lang.Object ref = accountIdentifier_; 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(); accountIdentifier_ = s; return s; } } /** * <code>string account_identifier = 7 [json_name = "accountIdentifier"];</code> * @return The bytes for accountIdentifier. */ @java.lang.Override public com.google.protobuf.ByteString getAccountIdentifierBytes() { java.lang.Object ref = accountIdentifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accountIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WAREHOUSE_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object warehouse_ = ""; /** * <code>string warehouse = 8 [json_name = "warehouse"];</code> * @return The warehouse. */ @java.lang.Override public java.lang.String getWarehouse() { java.lang.Object ref = warehouse_; 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(); warehouse_ = s; return s; } } /** * <code>string warehouse = 8 [json_name = "warehouse"];</code> * @return The bytes for warehouse. */ @java.lang.Override public com.google.protobuf.ByteString getWarehouseBytes() { java.lang.Object ref = warehouse_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); warehouse_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENGINE_ARGS_FIELD_NUMBER = 9; private static final class EngineArgsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue>newDefaultInstance( ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SnowflakeSource_EngineArgsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> engineArgs_; private com.google.protobuf.MapField<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> internalGetEngineArgs() { if (engineArgs_ == null) { return com.google.protobuf.MapField.emptyMapField( EngineArgsDefaultEntryHolder.defaultEntry); } return engineArgs_; } public int getEngineArgsCount() { return internalGetEngineArgs().getMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ @java.lang.Override public boolean containsEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetEngineArgs().getMap().containsKey(key); } /** * Use {@link #getEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgs() { return getEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgsMap() { return internalGetEngineArgs().getMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetEngineArgs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetEngineArgs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ASYNC_ENGINE_ARGS_FIELD_NUMBER = 10; private static final class AsyncEngineArgsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue>newDefaultInstance( ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SnowflakeSource_AsyncEngineArgsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> asyncEngineArgs_; private com.google.protobuf.MapField<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> internalGetAsyncEngineArgs() { if (asyncEngineArgs_ == null) { return com.google.protobuf.MapField.emptyMapField( AsyncEngineArgsDefaultEntryHolder.defaultEntry); } return asyncEngineArgs_; } public int getAsyncEngineArgsCount() { return internalGetAsyncEngineArgs().getMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public boolean containsAsyncEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAsyncEngineArgs().getMap().containsKey(key); } /** * Use {@link #getAsyncEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgs() { return getAsyncEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgsMap() { return internalGetAsyncEngineArgs().getMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetAsyncEngineArgs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetAsyncEngineArgs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int PRIVATE_KEY_B64_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object privateKeyB64_ = ""; /** * <code>string private_key_b64 = 11 [json_name = "privateKeyB64"];</code> * @return The privateKeyB64. */ @java.lang.Override public java.lang.String getPrivateKeyB64() { java.lang.Object ref = privateKeyB64_; 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(); privateKeyB64_ = s; return s; } } /** * <code>string private_key_b64 = 11 [json_name = "privateKeyB64"];</code> * @return The bytes for privateKeyB64. */ @java.lang.Override public com.google.protobuf.ByteString getPrivateKeyB64Bytes() { java.lang.Object ref = privateKeyB64_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); privateKeyB64_ = 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(db_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, db_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schema_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, role_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, user_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, password_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountIdentifier_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, accountIdentifier_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warehouse_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, warehouse_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetEngineArgs(), EngineArgsDefaultEntryHolder.defaultEntry, 9); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAsyncEngineArgs(), AsyncEngineArgsDefaultEntryHolder.defaultEntry, 10); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKeyB64_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, privateKeyB64_); } 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(db_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, db_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schema_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, role_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, user_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, password_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountIdentifier_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, accountIdentifier_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warehouse_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, warehouse_); } for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> entry : internalGetEngineArgs().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> engineArgs__ = EngineArgsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, engineArgs__); } for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> entry : internalGetAsyncEngineArgs().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> asyncEngineArgs__ = AsyncEngineArgsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, asyncEngineArgs__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKeyB64_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, privateKeyB64_); } 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.graph.v1.SnowflakeSource)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.SnowflakeSource other = (ai.chalk.protos.chalk.graph.v1.SnowflakeSource) obj; if (!getName() .equals(other.getName())) return false; if (!getDb() .equals(other.getDb())) return false; if (!getSchema() .equals(other.getSchema())) return false; if (!getRole() .equals(other.getRole())) return false; if (!getUser() .equals(other.getUser())) return false; if (!getPassword() .equals(other.getPassword())) return false; if (!getAccountIdentifier() .equals(other.getAccountIdentifier())) return false; if (!getWarehouse() .equals(other.getWarehouse())) return false; if (!internalGetEngineArgs().equals( other.internalGetEngineArgs())) return false; if (!internalGetAsyncEngineArgs().equals( other.internalGetAsyncEngineArgs())) return false; if (!getPrivateKeyB64() .equals(other.getPrivateKeyB64())) 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) + DB_FIELD_NUMBER; hash = (53 * hash) + getDb().hashCode(); hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + getRole().hashCode(); hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); hash = (37 * hash) + ACCOUNT_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getAccountIdentifier().hashCode(); hash = (37 * hash) + WAREHOUSE_FIELD_NUMBER; hash = (53 * hash) + getWarehouse().hashCode(); if (!internalGetEngineArgs().getMap().isEmpty()) { hash = (37 * hash) + ENGINE_ARGS_FIELD_NUMBER; hash = (53 * hash) + internalGetEngineArgs().hashCode(); } if (!internalGetAsyncEngineArgs().getMap().isEmpty()) { hash = (37 * hash) + ASYNC_ENGINE_ARGS_FIELD_NUMBER; hash = (53 * hash) + internalGetAsyncEngineArgs().hashCode(); } hash = (37 * hash) + PRIVATE_KEY_B64_FIELD_NUMBER; hash = (53 * hash) + getPrivateKeyB64().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.SnowflakeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.SnowflakeSource 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.graph.v1.SnowflakeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.SnowflakeSource 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.graph.v1.SnowflakeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.SnowflakeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.SnowflakeSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.SnowflakeSource 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.graph.v1.SnowflakeSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.SnowflakeSource 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.graph.v1.SnowflakeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.SnowflakeSource 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.graph.v1.SnowflakeSource 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.graph.v1.SnowflakeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.SnowflakeSource) ai.chalk.protos.chalk.graph.v1.SnowflakeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SnowflakeSource_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 9: return internalGetEngineArgs(); case 10: return internalGetAsyncEngineArgs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 9: return internalGetMutableEngineArgs(); case 10: return internalGetMutableAsyncEngineArgs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SnowflakeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.SnowflakeSource.class, ai.chalk.protos.chalk.graph.v1.SnowflakeSource.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.SnowflakeSource.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; db_ = ""; schema_ = ""; role_ = ""; user_ = ""; password_ = ""; accountIdentifier_ = ""; warehouse_ = ""; internalGetMutableEngineArgs().clear(); internalGetMutableAsyncEngineArgs().clear(); privateKeyB64_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SnowflakeSource_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SnowflakeSource getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.SnowflakeSource.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SnowflakeSource build() { ai.chalk.protos.chalk.graph.v1.SnowflakeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SnowflakeSource buildPartial() { ai.chalk.protos.chalk.graph.v1.SnowflakeSource result = new ai.chalk.protos.chalk.graph.v1.SnowflakeSource(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.SnowflakeSource result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.db_ = db_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.schema_ = schema_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.role_ = role_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.user_ = user_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.password_ = password_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.accountIdentifier_ = accountIdentifier_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.warehouse_ = warehouse_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.engineArgs_ = internalGetEngineArgs().build(EngineArgsDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000200) != 0)) { result.asyncEngineArgs_ = internalGetAsyncEngineArgs().build(AsyncEngineArgsDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000400) != 0)) { result.privateKeyB64_ = privateKeyB64_; } } @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.graph.v1.SnowflakeSource) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.SnowflakeSource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.SnowflakeSource other) { if (other == ai.chalk.protos.chalk.graph.v1.SnowflakeSource.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDb().isEmpty()) { db_ = other.db_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getSchema().isEmpty()) { schema_ = other.schema_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getRole().isEmpty()) { role_ = other.role_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getUser().isEmpty()) { user_ = other.user_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getPassword().isEmpty()) { password_ = other.password_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getAccountIdentifier().isEmpty()) { accountIdentifier_ = other.accountIdentifier_; bitField0_ |= 0x00000040; onChanged(); } if (!other.getWarehouse().isEmpty()) { warehouse_ = other.warehouse_; bitField0_ |= 0x00000080; onChanged(); } internalGetMutableEngineArgs().mergeFrom( other.internalGetEngineArgs()); bitField0_ |= 0x00000100; internalGetMutableAsyncEngineArgs().mergeFrom( other.internalGetAsyncEngineArgs()); bitField0_ |= 0x00000200; if (!other.getPrivateKeyB64().isEmpty()) { privateKeyB64_ = other.privateKeyB64_; bitField0_ |= 0x00000400; 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: { db_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { schema_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { role_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { user_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { password_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { accountIdentifier_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { warehouse_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> engineArgs__ = input.readMessage( EngineArgsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableEngineArgs().ensureBuilderMap().put( engineArgs__.getKey(), engineArgs__.getValue()); bitField0_ |= 0x00000100; break; } // case 74 case 82: { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> asyncEngineArgs__ = input.readMessage( AsyncEngineArgsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAsyncEngineArgs().ensureBuilderMap().put( asyncEngineArgs__.getKey(), asyncEngineArgs__.getValue()); bitField0_ |= 0x00000200; break; } // case 82 case 90: { privateKeyB64_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 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 db_ = ""; /** * <code>string db = 2 [json_name = "db"];</code> * @return The db. */ public java.lang.String getDb() { java.lang.Object ref = db_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); db_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string db = 2 [json_name = "db"];</code> * @return The bytes for db. */ public com.google.protobuf.ByteString getDbBytes() { java.lang.Object ref = db_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); db_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string db = 2 [json_name = "db"];</code> * @param value The db to set. * @return This builder for chaining. */ public Builder setDb( java.lang.String value) { if (value == null) { throw new NullPointerException(); } db_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>string db = 2 [json_name = "db"];</code> * @return This builder for chaining. */ public Builder clearDb() { db_ = getDefaultInstance().getDb(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string db = 2 [json_name = "db"];</code> * @param value The bytes for db to set. * @return This builder for chaining. */ public Builder setDbBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); db_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object schema_ = ""; /** * <code>string schema = 3 [json_name = "schema"];</code> * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string schema = 3 [json_name = "schema"];</code> * @return The bytes for schema. */ public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schema_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string schema = 3 [json_name = "schema"];</code> * @param value The schema to set. * @return This builder for chaining. */ public Builder setSchema( java.lang.String value) { if (value == null) { throw new NullPointerException(); } schema_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>string schema = 3 [json_name = "schema"];</code> * @return This builder for chaining. */ public Builder clearSchema() { schema_ = getDefaultInstance().getSchema(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>string schema = 3 [json_name = "schema"];</code> * @param value The bytes for schema to set. * @return This builder for chaining. */ public Builder setSchemaBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object role_ = ""; /** * <code>string role = 4 [json_name = "role"];</code> * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string role = 4 [json_name = "role"];</code> * @return The bytes for role. */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string role = 4 [json_name = "role"];</code> * @param value The role to set. * @return This builder for chaining. */ public Builder setRole( java.lang.String value) { if (value == null) { throw new NullPointerException(); } role_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>string role = 4 [json_name = "role"];</code> * @return This builder for chaining. */ public Builder clearRole() { role_ = getDefaultInstance().getRole(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * <code>string role = 4 [json_name = "role"];</code> * @param value The bytes for role to set. * @return This builder for chaining. */ public Builder setRoleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); role_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object user_ = ""; /** * <code>string user = 5 [json_name = "user"];</code> * @return The user. */ public java.lang.String getUser() { java.lang.Object ref = user_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); user_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string user = 5 [json_name = "user"];</code> * @return The bytes for user. */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string user = 5 [json_name = "user"];</code> * @param value The user to set. * @return This builder for chaining. */ public Builder setUser( java.lang.String value) { if (value == null) { throw new NullPointerException(); } user_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>string user = 5 [json_name = "user"];</code> * @return This builder for chaining. */ public Builder clearUser() { user_ = getDefaultInstance().getUser(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * <code>string user = 5 [json_name = "user"];</code> * @param value The bytes for user to set. * @return This builder for chaining. */ public Builder setUserBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); user_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object password_ = ""; /** * <code>string password = 6 [json_name = "password"];</code> * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string password = 6 [json_name = "password"];</code> * @return The bytes for password. */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string password = 6 [json_name = "password"];</code> * @param value The password to set. * @return This builder for chaining. */ public Builder setPassword( java.lang.String value) { if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>string password = 6 [json_name = "password"];</code> * @return This builder for chaining. */ public Builder clearPassword() { password_ = getDefaultInstance().getPassword(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * <code>string password = 6 [json_name = "password"];</code> * @param value The bytes for password to set. * @return This builder for chaining. */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object accountIdentifier_ = ""; /** * <code>string account_identifier = 7 [json_name = "accountIdentifier"];</code> * @return The accountIdentifier. */ public java.lang.String getAccountIdentifier() { java.lang.Object ref = accountIdentifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountIdentifier_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string account_identifier = 7 [json_name = "accountIdentifier"];</code> * @return The bytes for accountIdentifier. */ public com.google.protobuf.ByteString getAccountIdentifierBytes() { java.lang.Object ref = accountIdentifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accountIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string account_identifier = 7 [json_name = "accountIdentifier"];</code> * @param value The accountIdentifier to set. * @return This builder for chaining. */ public Builder setAccountIdentifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } accountIdentifier_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * <code>string account_identifier = 7 [json_name = "accountIdentifier"];</code> * @return This builder for chaining. */ public Builder clearAccountIdentifier() { accountIdentifier_ = getDefaultInstance().getAccountIdentifier(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * <code>string account_identifier = 7 [json_name = "accountIdentifier"];</code> * @param value The bytes for accountIdentifier to set. * @return This builder for chaining. */ public Builder setAccountIdentifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accountIdentifier_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object warehouse_ = ""; /** * <code>string warehouse = 8 [json_name = "warehouse"];</code> * @return The warehouse. */ public java.lang.String getWarehouse() { java.lang.Object ref = warehouse_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); warehouse_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string warehouse = 8 [json_name = "warehouse"];</code> * @return The bytes for warehouse. */ public com.google.protobuf.ByteString getWarehouseBytes() { java.lang.Object ref = warehouse_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); warehouse_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string warehouse = 8 [json_name = "warehouse"];</code> * @param value The warehouse to set. * @return This builder for chaining. */ public Builder setWarehouse( java.lang.String value) { if (value == null) { throw new NullPointerException(); } warehouse_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * <code>string warehouse = 8 [json_name = "warehouse"];</code> * @return This builder for chaining. */ public Builder clearWarehouse() { warehouse_ = getDefaultInstance().getWarehouse(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * <code>string warehouse = 8 [json_name = "warehouse"];</code> * @param value The bytes for warehouse to set. * @return This builder for chaining. */ public Builder setWarehouseBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); warehouse_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private static final class EngineArgsConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue> { @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue build(ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder val) { if (val instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { return (ai.chalk.protos.chalk.arrow.v1.ScalarValue) val; } return ((ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry() { return EngineArgsDefaultEntryHolder.defaultEntry; } }; private static final EngineArgsConverter engineArgsConverter = new EngineArgsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> engineArgs_; private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetEngineArgs() { if (engineArgs_ == null) { return new com.google.protobuf.MapFieldBuilder<>(engineArgsConverter); } return engineArgs_; } private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetMutableEngineArgs() { if (engineArgs_ == null) { engineArgs_ = new com.google.protobuf.MapFieldBuilder<>(engineArgsConverter); } bitField0_ |= 0x00000100; onChanged(); return engineArgs_; } public int getEngineArgsCount() { return internalGetEngineArgs().ensureBuilderMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ @java.lang.Override public boolean containsEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetEngineArgs().ensureBuilderMap().containsKey(key); } /** * Use {@link #getEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgs() { return getEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgsMap() { return internalGetEngineArgs().getImmutableMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableEngineArgs().ensureBuilderMap(); return map.containsKey(key) ? engineArgsConverter.build(map.get(key)) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableEngineArgs().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return engineArgsConverter.build(map.get(key)); } public Builder clearEngineArgs() { bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableEngineArgs().clear(); return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ public Builder removeEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableEngineArgs().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getMutableEngineArgs() { bitField0_ |= 0x00000100; return internalGetMutableEngineArgs().ensureMessageMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ public Builder putEngineArgs( java.lang.String key, ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableEngineArgs().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000100; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ public Builder putAllEngineArgs( java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> values) { for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableEngineArgs().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000100; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder putEngineArgsBuilderIfAbsent( java.lang.String key) { java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> builderMap = internalGetMutableEngineArgs().ensureBuilderMap(); ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder entry = builderMap.get(key); if (entry == null) { entry = ai.chalk.protos.chalk.arrow.v1.ScalarValue.newBuilder(); builderMap.put(key, entry); } if (entry instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { entry = ((ai.chalk.protos.chalk.arrow.v1.ScalarValue) entry).toBuilder(); builderMap.put(key, entry); } return (ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder) entry; } private static final class AsyncEngineArgsConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue> { @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue build(ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder val) { if (val instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { return (ai.chalk.protos.chalk.arrow.v1.ScalarValue) val; } return ((ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry() { return AsyncEngineArgsDefaultEntryHolder.defaultEntry; } }; private static final AsyncEngineArgsConverter asyncEngineArgsConverter = new AsyncEngineArgsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> asyncEngineArgs_; private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetAsyncEngineArgs() { if (asyncEngineArgs_ == null) { return new com.google.protobuf.MapFieldBuilder<>(asyncEngineArgsConverter); } return asyncEngineArgs_; } private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetMutableAsyncEngineArgs() { if (asyncEngineArgs_ == null) { asyncEngineArgs_ = new com.google.protobuf.MapFieldBuilder<>(asyncEngineArgsConverter); } bitField0_ |= 0x00000200; onChanged(); return asyncEngineArgs_; } public int getAsyncEngineArgsCount() { return internalGetAsyncEngineArgs().ensureBuilderMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public boolean containsAsyncEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAsyncEngineArgs().ensureBuilderMap().containsKey(key); } /** * Use {@link #getAsyncEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgs() { return getAsyncEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgsMap() { return internalGetAsyncEngineArgs().getImmutableMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableAsyncEngineArgs().ensureBuilderMap(); return map.containsKey(key) ? asyncEngineArgsConverter.build(map.get(key)) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableAsyncEngineArgs().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return asyncEngineArgsConverter.build(map.get(key)); } public Builder clearAsyncEngineArgs() { bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableAsyncEngineArgs().clear(); return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ public Builder removeAsyncEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAsyncEngineArgs().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getMutableAsyncEngineArgs() { bitField0_ |= 0x00000200; return internalGetMutableAsyncEngineArgs().ensureMessageMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ public Builder putAsyncEngineArgs( java.lang.String key, ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAsyncEngineArgs().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000200; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ public Builder putAllAsyncEngineArgs( java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> values) { for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableAsyncEngineArgs().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000200; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder putAsyncEngineArgsBuilderIfAbsent( java.lang.String key) { java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> builderMap = internalGetMutableAsyncEngineArgs().ensureBuilderMap(); ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder entry = builderMap.get(key); if (entry == null) { entry = ai.chalk.protos.chalk.arrow.v1.ScalarValue.newBuilder(); builderMap.put(key, entry); } if (entry instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { entry = ((ai.chalk.protos.chalk.arrow.v1.ScalarValue) entry).toBuilder(); builderMap.put(key, entry); } return (ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder) entry; } private java.lang.Object privateKeyB64_ = ""; /** * <code>string private_key_b64 = 11 [json_name = "privateKeyB64"];</code> * @return The privateKeyB64. */ public java.lang.String getPrivateKeyB64() { java.lang.Object ref = privateKeyB64_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateKeyB64_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string private_key_b64 = 11 [json_name = "privateKeyB64"];</code> * @return The bytes for privateKeyB64. */ public com.google.protobuf.ByteString getPrivateKeyB64Bytes() { java.lang.Object ref = privateKeyB64_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); privateKeyB64_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string private_key_b64 = 11 [json_name = "privateKeyB64"];</code> * @param value The privateKeyB64 to set. * @return This builder for chaining. */ public Builder setPrivateKeyB64( java.lang.String value) { if (value == null) { throw new NullPointerException(); } privateKeyB64_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * <code>string private_key_b64 = 11 [json_name = "privateKeyB64"];</code> * @return This builder for chaining. */ public Builder clearPrivateKeyB64() { privateKeyB64_ = getDefaultInstance().getPrivateKeyB64(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * <code>string private_key_b64 = 11 [json_name = "privateKeyB64"];</code> * @param value The bytes for privateKeyB64 to set. * @return This builder for chaining. */ public Builder setPrivateKeyB64Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); privateKeyB64_ = value; bitField0_ |= 0x00000400; 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.graph.v1.SnowflakeSource) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.SnowflakeSource) private static final ai.chalk.protos.chalk.graph.v1.SnowflakeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.SnowflakeSource(); } public static ai.chalk.protos.chalk.graph.v1.SnowflakeSource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<SnowflakeSource> PARSER = new com.google.protobuf.AbstractParser<SnowflakeSource>() { @java.lang.Override public SnowflakeSource 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<SnowflakeSource> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<SnowflakeSource> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SnowflakeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/SnowflakeSourceOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/sources.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface SnowflakeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.SnowflakeSource) 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 db = 2 [json_name = "db"];</code> * @return The db. */ java.lang.String getDb(); /** * <code>string db = 2 [json_name = "db"];</code> * @return The bytes for db. */ com.google.protobuf.ByteString getDbBytes(); /** * <code>string schema = 3 [json_name = "schema"];</code> * @return The schema. */ java.lang.String getSchema(); /** * <code>string schema = 3 [json_name = "schema"];</code> * @return The bytes for schema. */ com.google.protobuf.ByteString getSchemaBytes(); /** * <code>string role = 4 [json_name = "role"];</code> * @return The role. */ java.lang.String getRole(); /** * <code>string role = 4 [json_name = "role"];</code> * @return The bytes for role. */ com.google.protobuf.ByteString getRoleBytes(); /** * <code>string user = 5 [json_name = "user"];</code> * @return The user. */ java.lang.String getUser(); /** * <code>string user = 5 [json_name = "user"];</code> * @return The bytes for user. */ com.google.protobuf.ByteString getUserBytes(); /** * <code>string password = 6 [json_name = "password"];</code> * @return The password. */ java.lang.String getPassword(); /** * <code>string password = 6 [json_name = "password"];</code> * @return The bytes for password. */ com.google.protobuf.ByteString getPasswordBytes(); /** * <code>string account_identifier = 7 [json_name = "accountIdentifier"];</code> * @return The accountIdentifier. */ java.lang.String getAccountIdentifier(); /** * <code>string account_identifier = 7 [json_name = "accountIdentifier"];</code> * @return The bytes for accountIdentifier. */ com.google.protobuf.ByteString getAccountIdentifierBytes(); /** * <code>string warehouse = 8 [json_name = "warehouse"];</code> * @return The warehouse. */ java.lang.String getWarehouse(); /** * <code>string warehouse = 8 [json_name = "warehouse"];</code> * @return The bytes for warehouse. */ com.google.protobuf.ByteString getWarehouseBytes(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ int getEngineArgsCount(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ boolean containsEngineArgs( java.lang.String key); /** * Use {@link #getEngineArgsMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgs(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgsMap(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 9 [json_name = "engineArgs"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrThrow( java.lang.String key); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ int getAsyncEngineArgsCount(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ boolean containsAsyncEngineArgs( java.lang.String key); /** * Use {@link #getAsyncEngineArgsMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgs(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgsMap(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 10 [json_name = "asyncEngineArgs"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrThrow( java.lang.String key); /** * <code>string private_key_b64 = 11 [json_name = "privateKeyB64"];</code> * @return The privateKeyB64. */ java.lang.String getPrivateKeyB64(); /** * <code>string private_key_b64 = 11 [json_name = "privateKeyB64"];</code> * @return The bytes for privateKeyB64. */ com.google.protobuf.ByteString getPrivateKeyB64Bytes(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/SourceFileReference.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.SourceFileReference} */ public final class SourceFileReference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.SourceFileReference) SourceFileReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use SourceFileReference.newBuilder() to construct. private SourceFileReference(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private SourceFileReference() { code_ = ""; fileName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SourceFileReference(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_SourceFileReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_SourceFileReference_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.SourceFileReference.class, ai.chalk.protos.chalk.graph.v1.SourceFileReference.Builder.class); } private int bitField0_; public static final int RANGE_FIELD_NUMBER = 1; private ai.chalk.protos.chalk.lsp.v1.Range range_; /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return Whether the range field is set. */ @java.lang.Override public boolean hasRange() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return The range. */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Range getRange() { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder getRangeOrBuilder() { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } public static final int CODE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** * <code>optional string code = 2 [json_name = "code"];</code> * @return Whether the code field is set. */ @java.lang.Override public boolean hasCode() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>optional string code = 2 [json_name = "code"];</code> * @return The code. */ @java.lang.Override public java.lang.String getCode() { java.lang.Object ref = code_; 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(); code_ = s; return s; } } /** * <code>optional string code = 2 [json_name = "code"];</code> * @return The bytes for code. */ @java.lang.Override public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); code_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILE_NAME_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object fileName_ = ""; /** * <code>string file_name = 3 [json_name = "fileName"];</code> * @return The fileName. */ @java.lang.Override public java.lang.String getFileName() { java.lang.Object ref = fileName_; 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(); fileName_ = s; return s; } } /** * <code>string file_name = 3 [json_name = "fileName"];</code> * @return The bytes for fileName. */ @java.lang.Override public com.google.protobuf.ByteString getFileNameBytes() { java.lang.Object ref = fileName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fileName_ = 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, getRange()); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fileName_); } 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, getRange()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fileName_); } 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.graph.v1.SourceFileReference)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.SourceFileReference other = (ai.chalk.protos.chalk.graph.v1.SourceFileReference) obj; if (hasRange() != other.hasRange()) return false; if (hasRange()) { if (!getRange() .equals(other.getRange())) return false; } if (hasCode() != other.hasCode()) return false; if (hasCode()) { if (!getCode() .equals(other.getCode())) return false; } if (!getFileName() .equals(other.getFileName())) 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 (hasRange()) { hash = (37 * hash) + RANGE_FIELD_NUMBER; hash = (53 * hash) + getRange().hashCode(); } if (hasCode()) { hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode().hashCode(); } hash = (37 * hash) + FILE_NAME_FIELD_NUMBER; hash = (53 * hash) + getFileName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.SourceFileReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.SourceFileReference 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.graph.v1.SourceFileReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.SourceFileReference 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.graph.v1.SourceFileReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.SourceFileReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.SourceFileReference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.SourceFileReference 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.graph.v1.SourceFileReference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.SourceFileReference 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.graph.v1.SourceFileReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.SourceFileReference 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.graph.v1.SourceFileReference 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.graph.v1.SourceFileReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.SourceFileReference) ai.chalk.protos.chalk.graph.v1.SourceFileReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_SourceFileReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_SourceFileReference_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.SourceFileReference.class, ai.chalk.protos.chalk.graph.v1.SourceFileReference.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.SourceFileReference.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRangeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; range_ = null; if (rangeBuilder_ != null) { rangeBuilder_.dispose(); rangeBuilder_ = null; } code_ = ""; fileName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_SourceFileReference_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SourceFileReference getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.SourceFileReference.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SourceFileReference build() { ai.chalk.protos.chalk.graph.v1.SourceFileReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SourceFileReference buildPartial() { ai.chalk.protos.chalk.graph.v1.SourceFileReference result = new ai.chalk.protos.chalk.graph.v1.SourceFileReference(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.SourceFileReference result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.range_ = rangeBuilder_ == null ? range_ : rangeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.code_ = code_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.fileName_ = fileName_; } 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.graph.v1.SourceFileReference) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.SourceFileReference)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.SourceFileReference other) { if (other == ai.chalk.protos.chalk.graph.v1.SourceFileReference.getDefaultInstance()) return this; if (other.hasRange()) { mergeRange(other.getRange()); } if (other.hasCode()) { code_ = other.code_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getFileName().isEmpty()) { fileName_ = other.fileName_; 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: { input.readMessage( getRangeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { code_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { fileName_ = 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 ai.chalk.protos.chalk.lsp.v1.Range range_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Range, ai.chalk.protos.chalk.lsp.v1.Range.Builder, ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder> rangeBuilder_; /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return Whether the range field is set. */ public boolean hasRange() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return The range. */ public ai.chalk.protos.chalk.lsp.v1.Range getRange() { if (rangeBuilder_ == null) { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } else { return rangeBuilder_.getMessage(); } } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public Builder setRange(ai.chalk.protos.chalk.lsp.v1.Range value) { if (rangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } range_ = value; } else { rangeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public Builder setRange( ai.chalk.protos.chalk.lsp.v1.Range.Builder builderForValue) { if (rangeBuilder_ == null) { range_ = builderForValue.build(); } else { rangeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public Builder mergeRange(ai.chalk.protos.chalk.lsp.v1.Range value) { if (rangeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && range_ != null && range_ != ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance()) { getRangeBuilder().mergeFrom(value); } else { range_ = value; } } else { rangeBuilder_.mergeFrom(value); } if (range_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public Builder clearRange() { bitField0_ = (bitField0_ & ~0x00000001); range_ = null; if (rangeBuilder_ != null) { rangeBuilder_.dispose(); rangeBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public ai.chalk.protos.chalk.lsp.v1.Range.Builder getRangeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRangeFieldBuilder().getBuilder(); } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder getRangeOrBuilder() { if (rangeBuilder_ != null) { return rangeBuilder_.getMessageOrBuilder(); } else { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Range, ai.chalk.protos.chalk.lsp.v1.Range.Builder, ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder> getRangeFieldBuilder() { if (rangeBuilder_ == null) { rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Range, ai.chalk.protos.chalk.lsp.v1.Range.Builder, ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder>( getRange(), getParentForChildren(), isClean()); range_ = null; } return rangeBuilder_; } private java.lang.Object code_ = ""; /** * <code>optional string code = 2 [json_name = "code"];</code> * @return Whether the code field is set. */ public boolean hasCode() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>optional string code = 2 [json_name = "code"];</code> * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string code = 2 [json_name = "code"];</code> * @return The bytes for code. */ public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); code_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string code = 2 [json_name = "code"];</code> * @param value The code to set. * @return This builder for chaining. */ public Builder setCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } code_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>optional string code = 2 [json_name = "code"];</code> * @return This builder for chaining. */ public Builder clearCode() { code_ = getDefaultInstance().getCode(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>optional string code = 2 [json_name = "code"];</code> * @param value The bytes for code to set. * @return This builder for chaining. */ public Builder setCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object fileName_ = ""; /** * <code>string file_name = 3 [json_name = "fileName"];</code> * @return The fileName. */ public java.lang.String getFileName() { java.lang.Object ref = fileName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string file_name = 3 [json_name = "fileName"];</code> * @return The bytes for fileName. */ public com.google.protobuf.ByteString getFileNameBytes() { java.lang.Object ref = fileName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fileName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string file_name = 3 [json_name = "fileName"];</code> * @param value The fileName to set. * @return This builder for chaining. */ public Builder setFileName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fileName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>string file_name = 3 [json_name = "fileName"];</code> * @return This builder for chaining. */ public Builder clearFileName() { fileName_ = getDefaultInstance().getFileName(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>string file_name = 3 [json_name = "fileName"];</code> * @param value The bytes for fileName to set. * @return This builder for chaining. */ public Builder setFileNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fileName_ = 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.graph.v1.SourceFileReference) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.SourceFileReference) private static final ai.chalk.protos.chalk.graph.v1.SourceFileReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.SourceFileReference(); } public static ai.chalk.protos.chalk.graph.v1.SourceFileReference getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<SourceFileReference> PARSER = new com.google.protobuf.AbstractParser<SourceFileReference>() { @java.lang.Override public SourceFileReference 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<SourceFileReference> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<SourceFileReference> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SourceFileReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/SourceFileReferenceOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface SourceFileReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.SourceFileReference) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return Whether the range field is set. */ boolean hasRange(); /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return The range. */ ai.chalk.protos.chalk.lsp.v1.Range getRange(); /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder getRangeOrBuilder(); /** * <code>optional string code = 2 [json_name = "code"];</code> * @return Whether the code field is set. */ boolean hasCode(); /** * <code>optional string code = 2 [json_name = "code"];</code> * @return The code. */ java.lang.String getCode(); /** * <code>optional string code = 2 [json_name = "code"];</code> * @return The bytes for code. */ com.google.protobuf.ByteString getCodeBytes(); /** * <code>string file_name = 3 [json_name = "fileName"];</code> * @return The fileName. */ java.lang.String getFileName(); /** * <code>string file_name = 3 [json_name = "fileName"];</code> * @return The bytes for fileName. */ com.google.protobuf.ByteString getFileNameBytes(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/SourcesProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/sources.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public final class SourcesProto { private SourcesProto() {} 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_graph_v1_StreamSourceReference_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_StreamSourceReference_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_StreamSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_StreamSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_KinesisSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_KinesisSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_KafkaSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_KafkaSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_PubSubSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_PubSubSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_DatabaseSourceReference_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_DatabaseSourceReference_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_DatabaseSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_DatabaseSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_BigQuerySource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_BigQuerySource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_BigQuerySource_EngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_BigQuerySource_EngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_BigQuerySource_AsyncEngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_BigQuerySource_AsyncEngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_CloudSQLSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_CloudSQLSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_CloudSQLSource_EngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_CloudSQLSource_EngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_CloudSQLSource_AsyncEngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_CloudSQLSource_AsyncEngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_DatabricksSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_DatabricksSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_DatabricksSource_EngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_DatabricksSource_EngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_DatabricksSource_AsyncEngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_DatabricksSource_AsyncEngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_DynamoDBSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_DynamoDBSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_DynamoDBSource_EngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_DynamoDBSource_EngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_DynamoDBSource_AsyncEngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_DynamoDBSource_AsyncEngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_MySQLSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_MySQLSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_MySQLSource_EngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_MySQLSource_EngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_MySQLSource_AsyncEngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_MySQLSource_AsyncEngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_PostgresSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_PostgresSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_PostgresSource_EngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_PostgresSource_EngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_PostgresSource_AsyncEngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_PostgresSource_AsyncEngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_RedshiftSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_RedshiftSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_RedshiftSource_EngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_RedshiftSource_EngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_RedshiftSource_AsyncEngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_RedshiftSource_AsyncEngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_SnowflakeSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_SnowflakeSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_SnowflakeSource_EngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_SnowflakeSource_EngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_SnowflakeSource_AsyncEngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_SnowflakeSource_AsyncEngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_SQLiteSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_SQLiteSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_SQLiteSource_EngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_SQLiteSource_EngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_SQLiteSource_AsyncEngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_SQLiteSource_AsyncEngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_SpannerSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_SpannerSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_SpannerSource_EngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_SpannerSource_EngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_SpannerSource_AsyncEngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_SpannerSource_AsyncEngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_TrinoSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_TrinoSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_TrinoSource_EngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_TrinoSource_EngineArgsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_graph_v1_TrinoSource_AsyncEngineArgsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_graph_v1_TrinoSource_AsyncEngineArgsEntry_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/graph/v1/sources.proto\022\016chalk.gr" + "aph.v1\032\032chalk/arrow/v1/arrow.proto\032\036goog" + "le/protobuf/duration.proto\"a\n\025StreamSour" + "ceReference\0224\n\004type\030\001 \001(\0162 .chalk.graph." + "v1.StreamSourceTypeR\004type\022\022\n\004name\030\002 \001(\tR" + "\004name\"\300\001\n\014StreamSource\0223\n\005kafka\030\001 \001(\0132\033." + "chalk.graph.v1.KafkaSourceH\000R\005kafka\0229\n\007k" + "inesis\030\002 \001(\0132\035.chalk.graph.v1.KinesisSou" + "rceH\000R\007kinesis\0226\n\006pubsub\030\003 \001(\0132\034.chalk.g" + "raph.v1.PubSubSourceH\000R\006pubsubB\010\n\006source" + "\"\356\003\n\rKinesisSource\022\022\n\004name\030\001 \001(\tR\004name\022\037" + "\n\013stream_name\030\002 \001(\tR\nstreamName\022\035\n\nstrea" + "m_arn\030\003 \001(\tR\tstreamArn\022\037\n\013region_name\030\004 " + "\001(\tR\nregionName\022M\n\025late_arrival_deadline" + "\030\005 \001(\0132\031.google.protobuf.DurationR\023lateA" + "rrivalDeadline\022@\n\035dead_letter_queue_stre" + "am_name\030\006 \001(\tR\031deadLetterQueueStreamName" + "\022)\n\021aws_access_key_id\030\007 \001(\tR\016awsAccessKe" + "yId\0221\n\025aws_secret_access_key\030\010 \001(\tR\022awsS" + "ecretAccessKey\022*\n\021aws_session_token\030\t \001(" + "\tR\017awsSessionToken\022!\n\014endpoint_url\030\n \001(\t" + "R\013endpointUrl\022*\n\021consumer_role_arn\030\013 \001(\t" + "R\017consumerRoleArn\"\256\004\n\013KafkaSource\022\022\n\004nam" + "e\030\001 \001(\tR\004name\022+\n\021bootstrap_servers\030\002 \003(\t" + "R\020bootstrapServers\022\024\n\005topic\030\003 \001(\tR\005topic" + "\0222\n\025ssl_keystore_location\030\004 \001(\tR\023sslKeys" + "toreLocation\022\036\n\013ssl_ca_file\030\005 \001(\tR\tsslCa" + "File\022(\n\020client_id_prefix\030\006 \001(\tR\016clientId" + "Prefix\022&\n\017group_id_prefix\030\007 \001(\tR\rgroupId" + "Prefix\022+\n\021security_protocol\030\010 \001(\tR\020secur" + "ityProtocol\022%\n\016sasl_mechanism\030\t \001(\tR\rsas" + "lMechanism\022#\n\rsasl_username\030\n \001(\tR\014saslU" + "sername\022#\n\rsasl_password\030\013 \001(\tR\014saslPass" + "word\022M\n\025late_arrival_deadline\030\014 \001(\0132\031.go" + "ogle.protobuf.DurationR\023lateArrivalDeadl" + "ine\0225\n\027dead_letter_queue_topic\030\r \001(\tR\024de" + "adLetterQueueTopic\"\360\001\n\014PubSubSource\022\022\n\004n" + "ame\030\001 \001(\tR\004name\022\035\n\nproject_id\030\002 \001(\tR\tpro" + "jectId\022\'\n\017subscription_id\030\003 \001(\tR\016subscri" + "ptionId\022M\n\025late_arrival_deadline\030\004 \001(\0132\031" + ".google.protobuf.DurationR\023lateArrivalDe" + "adline\0225\n\027dead_letter_queue_topic\030\005 \001(\tR" + "\024deadLetterQueueTopic\"e\n\027DatabaseSourceR" + "eference\0226\n\004type\030\001 \001(\0162\".chalk.graph.v1." + "DatabaseSourceTypeR\004type\022\022\n\004name\030\002 \001(\tR\004" + "name\"\262\005\n\016DatabaseSource\022<\n\010bigquery\030\001 \001(" + "\0132\036.chalk.graph.v1.BigQuerySourceH\000R\010big" + "query\022<\n\010cloudsql\030\002 \001(\0132\036.chalk.graph.v1" + ".CloudSQLSourceH\000R\010cloudsql\022B\n\ndatabrick" + "s\030\003 \001(\0132 .chalk.graph.v1.DatabricksSourc" + "eH\000R\ndatabricks\0223\n\005mysql\030\004 \001(\0132\033.chalk.g" + "raph.v1.MySQLSourceH\000R\005mysql\022<\n\010postgres" + "\030\005 \001(\0132\036.chalk.graph.v1.PostgresSourceH\000" + "R\010postgres\022<\n\010redshift\030\006 \001(\0132\036.chalk.gra" + "ph.v1.RedshiftSourceH\000R\010redshift\022?\n\tsnow" + "flake\030\007 \001(\0132\037.chalk.graph.v1.SnowflakeSo" + "urceH\000R\tsnowflake\0226\n\006sqlite\030\010 \001(\0132\034.chal" + "k.graph.v1.SQLiteSourceH\000R\006sqlite\0229\n\007spa" + "nner\030\t \001(\0132\035.chalk.graph.v1.SpannerSourc" + "eH\000R\007spanner\0223\n\005trino\030\n \001(\0132\033.chalk.grap" + "h.v1.TrinoSourceH\000R\005trino\022<\n\010dynamodb\030\013 " + "\001(\0132\036.chalk.graph.v1.DynamoDBSourceH\000R\010d" + "ynamodbB\010\n\006source\"\275\004\n\016BigQuerySource\022\022\n\004" + "name\030\001 \001(\tR\004name\022\030\n\007project\030\002 \001(\tR\007proje" + "ct\022\030\n\007dataset\030\003 \001(\tR\007dataset\022\032\n\010location" + "\030\004 \001(\tR\010location\022-\n\022credentials_base64\030\005" + " \001(\tR\021credentialsBase64\022)\n\020credentials_p" + "ath\030\006 \001(\tR\017credentialsPath\022O\n\013engine_arg" + "s\030\007 \003(\0132..chalk.graph.v1.BigQuerySource." + "EngineArgsEntryR\nengineArgs\022_\n\021async_eng" + "ine_args\030\010 \003(\01323.chalk.graph.v1.BigQuery" + "Source.AsyncEngineArgsEntryR\017asyncEngine" + "Args\032Z\n\017EngineArgsEntry\022\020\n\003key\030\001 \001(\tR\003ke" + "y\0221\n\005value\030\002 \001(\0132\033.chalk.arrow.v1.Scalar" + "ValueR\005value:\0028\001\032_\n\024AsyncEngineArgsEntry" + "\022\020\n\003key\030\001 \001(\tR\003key\0221\n\005value\030\002 \001(\0132\033.chal" + "k.arrow.v1.ScalarValueR\005value:\0028\001\"\370\003\n\016Cl" + "oudSQLSource\022\022\n\004name\030\001 \001(\tR\004name\022\016\n\002db\030\002" + " \001(\tR\002db\022\022\n\004user\030\003 \001(\tR\004user\022\032\n\010password" + "\030\004 \001(\tR\010password\022#\n\rinstance_name\030\005 \001(\tR" + "\014instanceName\022O\n\013engine_args\030\006 \003(\0132..cha" + "lk.graph.v1.CloudSQLSource.EngineArgsEnt" + "ryR\nengineArgs\022_\n\021async_engine_args\030\007 \003(" + "\01323.chalk.graph.v1.CloudSQLSource.AsyncE" + "ngineArgsEntryR\017asyncEngineArgs\032Z\n\017Engin" + "eArgsEntry\022\020\n\003key\030\001 \001(\tR\003key\0221\n\005value\030\002 " + "\001(\0132\033.chalk.arrow.v1.ScalarValueR\005value:" + "\0028\001\032_\n\024AsyncEngineArgsEntry\022\020\n\003key\030\001 \001(\t" + "R\003key\0221\n\005value\030\002 \001(\0132\033.chalk.arrow.v1.Sc" + "alarValueR\005value:\0028\001\"\221\004\n\020DatabricksSourc" + "e\022\022\n\004name\030\001 \001(\tR\004name\022\022\n\004host\030\002 \001(\tR\004hos" + "t\022\022\n\004port\030\003 \001(\tR\004port\022\016\n\002db\030\004 \001(\tR\002db\022\033\n" + "\thttp_path\030\005 \001(\tR\010httpPath\022!\n\014access_tok" + "en\030\006 \001(\tR\013accessToken\022Q\n\013engine_args\030\007 \003" + "(\01320.chalk.graph.v1.DatabricksSource.Eng" + "ineArgsEntryR\nengineArgs\022a\n\021async_engine" + "_args\030\010 \003(\01325.chalk.graph.v1.DatabricksS" + "ource.AsyncEngineArgsEntryR\017asyncEngineA" + "rgs\032Z\n\017EngineArgsEntry\022\020\n\003key\030\001 \001(\tR\003key" + "\0221\n\005value\030\002 \001(\0132\033.chalk.arrow.v1.ScalarV" + "alueR\005value:\0028\001\032_\n\024AsyncEngineArgsEntry\022" + "\020\n\003key\030\001 \001(\tR\003key\0221\n\005value\030\002 \001(\0132\033.chalk" + ".arrow.v1.ScalarValueR\005value:\0028\001\"\336\005\n\016Dyn" + "amoDBSource\022\022\n\004name\030\001 \001(\tR\004name\0228\n\026aws_c" + "lient_id_override\030\002 \001(\tH\000R\023awsClientIdOv" + "erride\210\001\001\022@\n\032aws_client_secret_override\030" + "\003 \001(\tH\001R\027awsClientSecretOverride\210\001\001\0223\n\023a" + "ws_region_override\030\004 \001(\tH\002R\021awsRegionOve" + "rride\210\001\001\0220\n\021endpoint_override\030\005 \001(\tH\003R\020e" + "ndpointOverride\210\001\001\022O\n\013engine_args\030\006 \003(\0132" + "..chalk.graph.v1.DynamoDBSource.EngineAr" + "gsEntryR\nengineArgs\022_\n\021async_engine_args" + "\030\007 \003(\01323.chalk.graph.v1.DynamoDBSource.A" + "syncEngineArgsEntryR\017asyncEngineArgs\032Z\n\017" + "EngineArgsEntry\022\020\n\003key\030\001 \001(\tR\003key\0221\n\005val" + "ue\030\002 \001(\0132\033.chalk.arrow.v1.ScalarValueR\005v" + "alue:\0028\001\032_\n\024AsyncEngineArgsEntry\022\020\n\003key\030" + "\001 \001(\tR\003key\0221\n\005value\030\002 \001(\0132\033.chalk.arrow." + "v1.ScalarValueR\005value:\0028\001B\031\n\027_aws_client" + "_id_overrideB\035\n\033_aws_client_secret_overr" + "ideB\026\n\024_aws_region_overrideB\024\n\022_endpoint" + "_override\"\362\003\n\013MySQLSource\022\022\n\004name\030\001 \001(\tR" + "\004name\022\022\n\004host\030\002 \001(\tR\004host\022\022\n\004port\030\003 \001(\tR" + "\004port\022\016\n\002db\030\004 \001(\tR\002db\022\022\n\004user\030\005 \001(\tR\004use" + "r\022\032\n\010password\030\006 \001(\tR\010password\022L\n\013engine_" + "args\030\007 \003(\0132+.chalk.graph.v1.MySQLSource." + "EngineArgsEntryR\nengineArgs\022\\\n\021async_eng" + "ine_args\030\010 \003(\01320.chalk.graph.v1.MySQLSou" + "rce.AsyncEngineArgsEntryR\017asyncEngineArg" + "s\032Z\n\017EngineArgsEntry\022\020\n\003key\030\001 \001(\tR\003key\0221" + "\n\005value\030\002 \001(\0132\033.chalk.arrow.v1.ScalarVal" + "ueR\005value:\0028\001\032_\n\024AsyncEngineArgsEntry\022\020\n" + "\003key\030\001 \001(\tR\003key\0221\n\005value\030\002 \001(\0132\033.chalk.a" + "rrow.v1.ScalarValueR\005value:\0028\001\"\373\003\n\016Postg" + "resSource\022\022\n\004name\030\001 \001(\tR\004name\022\022\n\004host\030\002 " + "\001(\tR\004host\022\022\n\004port\030\003 \001(\tR\004port\022\016\n\002db\030\004 \001(" + "\tR\002db\022\022\n\004user\030\005 \001(\tR\004user\022\032\n\010password\030\006 " + "\001(\tR\010password\022O\n\013engine_args\030\007 \003(\0132..cha" + "lk.graph.v1.PostgresSource.EngineArgsEnt" + "ryR\nengineArgs\022_\n\021async_engine_args\030\010 \003(" + "\01323.chalk.graph.v1.PostgresSource.AsyncE" + "ngineArgsEntryR\017asyncEngineArgs\032Z\n\017Engin" + "eArgsEntry\022\020\n\003key\030\001 \001(\tR\003key\0221\n\005value\030\002 " + "\001(\0132\033.chalk.arrow.v1.ScalarValueR\005value:" + "\0028\001\032_\n\024AsyncEngineArgsEntry\022\020\n\003key\030\001 \001(\t" + "R\003key\0221\n\005value\030\002 \001(\0132\033.chalk.arrow.v1.Sc" + "alarValueR\005value:\0028\001\"\335\004\n\016RedshiftSource\022" + "\022\n\004name\030\001 \001(\tR\004name\022\022\n\004host\030\002 \001(\tR\004host\022" + "\022\n\004port\030\003 \001(\tR\004port\022\016\n\002db\030\004 \001(\tR\002db\022\022\n\004u" + "ser\030\005 \001(\tR\004user\022\032\n\010password\030\006 \001(\tR\010passw" + "ord\022\033\n\ts3_client\030\007 \001(\tR\010s3Client\022\033\n\ts3_b" + "ucket\030\010 \001(\tR\010s3Bucket\022O\n\013engine_args\030\t \003" + "(\0132..chalk.graph.v1.RedshiftSource.Engin" + "eArgsEntryR\nengineArgs\022_\n\021async_engine_a" + "rgs\030\n \003(\01323.chalk.graph.v1.RedshiftSourc" + "e.AsyncEngineArgsEntryR\017asyncEngineArgs\022" + "&\n\017unload_iam_role\030\013 \001(\tR\runloadIamRole\032" + "Z\n\017EngineArgsEntry\022\020\n\003key\030\001 \001(\tR\003key\0221\n\005" + "value\030\002 \001(\0132\033.chalk.arrow.v1.ScalarValue" + "R\005value:\0028\001\032_\n\024AsyncEngineArgsEntry\022\020\n\003k" + "ey\030\001 \001(\tR\003key\0221\n\005value\030\002 \001(\0132\033.chalk.arr" + "ow.v1.ScalarValueR\005value:\0028\001\"\367\004\n\017Snowfla" + "keSource\022\022\n\004name\030\001 \001(\tR\004name\022\016\n\002db\030\002 \001(\t" + "R\002db\022\026\n\006schema\030\003 \001(\tR\006schema\022\022\n\004role\030\004 \001" + "(\tR\004role\022\022\n\004user\030\005 \001(\tR\004user\022\032\n\010password" + "\030\006 \001(\tR\010password\022-\n\022account_identifier\030\007" + " \001(\tR\021accountIdentifier\022\034\n\twarehouse\030\010 \001" + "(\tR\twarehouse\022P\n\013engine_args\030\t \003(\0132/.cha" + "lk.graph.v1.SnowflakeSource.EngineArgsEn" + "tryR\nengineArgs\022`\n\021async_engine_args\030\n \003" + "(\01324.chalk.graph.v1.SnowflakeSource.Asyn" + "cEngineArgsEntryR\017asyncEngineArgs\022&\n\017pri" + "vate_key_b64\030\013 \001(\tR\rprivateKeyB64\032Z\n\017Eng" + "ineArgsEntry\022\020\n\003key\030\001 \001(\tR\003key\0221\n\005value\030" + "\002 \001(\0132\033.chalk.arrow.v1.ScalarValueR\005valu" + "e:\0028\001\032_\n\024AsyncEngineArgsEntry\022\020\n\003key\030\001 \001" + "(\tR\003key\0221\n\005value\030\002 \001(\0132\033.chalk.arrow.v1." + "ScalarValueR\005value:\0028\001\"\252\003\n\014SQLiteSource\022" + "\022\n\004name\030\001 \001(\tR\004name\022\033\n\tfile_name\030\002 \001(\tR\010" + "fileName\022M\n\013engine_args\030\003 \003(\0132,.chalk.gr" + "aph.v1.SQLiteSource.EngineArgsEntryR\neng" + "ineArgs\022]\n\021async_engine_args\030\004 \003(\01321.cha" + "lk.graph.v1.SQLiteSource.AsyncEngineArgs" + "EntryR\017asyncEngineArgs\032Z\n\017EngineArgsEntr" + "y\022\020\n\003key\030\001 \001(\tR\003key\0221\n\005value\030\002 \001(\0132\033.cha" + "lk.arrow.v1.ScalarValueR\005value:\0028\001\032_\n\024As" + "yncEngineArgsEntry\022\020\n\003key\030\001 \001(\tR\003key\0221\n\005" + "value\030\002 \001(\0132\033.chalk.arrow.v1.ScalarValue" + "R\005value:\0028\001\"\205\004\n\rSpannerSource\022\022\n\004name\030\001 " + "\001(\tR\004name\022\030\n\007project\030\002 \001(\tR\007project\022\032\n\010i" + "nstance\030\003 \001(\tR\010instance\022\016\n\002db\030\004 \001(\tR\002db\022" + "-\n\022credentials_base64\030\005 \001(\tR\021credentials" + "Base64\022N\n\013engine_args\030\006 \003(\0132-.chalk.grap" + "h.v1.SpannerSource.EngineArgsEntryR\nengi" + "neArgs\022^\n\021async_engine_args\030\007 \003(\01322.chal" + "k.graph.v1.SpannerSource.AsyncEngineArgs" + "EntryR\017asyncEngineArgs\032Z\n\017EngineArgsEntr" + "y\022\020\n\003key\030\001 \001(\tR\003key\0221\n\005value\030\002 \001(\0132\033.cha" + "lk.arrow.v1.ScalarValueR\005value:\0028\001\032_\n\024As" + "yncEngineArgsEntry\022\020\n\003key\030\001 \001(\tR\003key\0221\n\005" + "value\030\002 \001(\0132\033.chalk.arrow.v1.ScalarValue" + "R\005value:\0028\001\"\224\004\n\013TrinoSource\022\022\n\004name\030\001 \001(" + "\tR\004name\022\022\n\004host\030\002 \001(\tR\004host\022\022\n\004port\030\003 \001(" + "\tR\004port\022\030\n\007catalog\030\004 \001(\tR\007catalog\022\026\n\006sch" + "ema\030\005 \001(\tR\006schema\022\022\n\004user\030\006 \001(\tR\004user\022\032\n" + "\010password\030\007 \001(\tR\010password\022L\n\013engine_args" + "\030\010 \003(\0132+.chalk.graph.v1.TrinoSource.Engi" + "neArgsEntryR\nengineArgs\022\\\n\021async_engine_" + "args\030\t \003(\01320.chalk.graph.v1.TrinoSource." + "AsyncEngineArgsEntryR\017asyncEngineArgs\032Z\n" + "\017EngineArgsEntry\022\020\n\003key\030\001 \001(\tR\003key\0221\n\005va" + "lue\030\002 \001(\0132\033.chalk.arrow.v1.ScalarValueR\005" + "value:\0028\001\032_\n\024AsyncEngineArgsEntry\022\020\n\003key" + "\030\001 \001(\tR\003key\0221\n\005value\030\002 \001(\0132\033.chalk.arrow" + ".v1.ScalarValueR\005value:\0028\001*\223\001\n\020StreamSou" + "rceType\022\"\n\036STREAM_SOURCE_TYPE_UNSPECIFIE" + "D\020\000\022\034\n\030STREAM_SOURCE_TYPE_KAFKA\020\001\022\036\n\032STR" + "EAM_SOURCE_TYPE_KINESIS\020\002\022\035\n\031STREAM_SOUR" + "CE_TYPE_PUBSUB\020\003*\265\003\n\022DatabaseSourceType\022" + "$\n DATABASE_SOURCE_TYPE_UNSPECIFIED\020\000\022!\n" + "\035DATABASE_SOURCE_TYPE_BIGQUERY\020\001\022!\n\035DATA" + "BASE_SOURCE_TYPE_CLOUDSQL\020\002\022#\n\037DATABASE_" + "SOURCE_TYPE_DATABRICKS\020\003\022\036\n\032DATABASE_SOU" + "RCE_TYPE_MYSQL\020\004\022!\n\035DATABASE_SOURCE_TYPE" + "_POSTGRES\020\005\022!\n\035DATABASE_SOURCE_TYPE_REDS" + "HIFT\020\006\022\"\n\036DATABASE_SOURCE_TYPE_SNOWFLAKE" + "\020\007\022\037\n\033DATABASE_SOURCE_TYPE_SQLITE\020\010\022 \n\034D" + "ATABASE_SOURCE_TYPE_SPANNER\020\t\022\036\n\032DATABAS" + "E_SOURCE_TYPE_TRINO\020\n\022!\n\035DATABASE_SOURCE" + "_TYPE_DYNAMODB\020\013B\210\001\n\036ai.chalk.protos.cha" + "lk.graph.v1B\014SourcesProtoP\001\242\002\003CGX\252\002\016Chal" + "k.Graph.V1\312\002\016Chalk\\Graph\\V1\342\002\032Chalk\\Grap" + "h\\V1\\GPBMetadata\352\002\020Chalk::Graph::V1b\006pro" + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { ai.chalk.protos.chalk.arrow.v1.ArrowProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), }); internal_static_chalk_graph_v1_StreamSourceReference_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_chalk_graph_v1_StreamSourceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_StreamSourceReference_descriptor, new java.lang.String[] { "Type", "Name", }); internal_static_chalk_graph_v1_StreamSource_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_chalk_graph_v1_StreamSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_StreamSource_descriptor, new java.lang.String[] { "Kafka", "Kinesis", "Pubsub", "Source", }); internal_static_chalk_graph_v1_KinesisSource_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_chalk_graph_v1_KinesisSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_KinesisSource_descriptor, new java.lang.String[] { "Name", "StreamName", "StreamArn", "RegionName", "LateArrivalDeadline", "DeadLetterQueueStreamName", "AwsAccessKeyId", "AwsSecretAccessKey", "AwsSessionToken", "EndpointUrl", "ConsumerRoleArn", }); internal_static_chalk_graph_v1_KafkaSource_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_chalk_graph_v1_KafkaSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_KafkaSource_descriptor, new java.lang.String[] { "Name", "BootstrapServers", "Topic", "SslKeystoreLocation", "SslCaFile", "ClientIdPrefix", "GroupIdPrefix", "SecurityProtocol", "SaslMechanism", "SaslUsername", "SaslPassword", "LateArrivalDeadline", "DeadLetterQueueTopic", }); internal_static_chalk_graph_v1_PubSubSource_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_chalk_graph_v1_PubSubSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_PubSubSource_descriptor, new java.lang.String[] { "Name", "ProjectId", "SubscriptionId", "LateArrivalDeadline", "DeadLetterQueueTopic", }); internal_static_chalk_graph_v1_DatabaseSourceReference_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_chalk_graph_v1_DatabaseSourceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_DatabaseSourceReference_descriptor, new java.lang.String[] { "Type", "Name", }); internal_static_chalk_graph_v1_DatabaseSource_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_chalk_graph_v1_DatabaseSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_DatabaseSource_descriptor, new java.lang.String[] { "Bigquery", "Cloudsql", "Databricks", "Mysql", "Postgres", "Redshift", "Snowflake", "Sqlite", "Spanner", "Trino", "Dynamodb", "Source", }); internal_static_chalk_graph_v1_BigQuerySource_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_chalk_graph_v1_BigQuerySource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_BigQuerySource_descriptor, new java.lang.String[] { "Name", "Project", "Dataset", "Location", "CredentialsBase64", "CredentialsPath", "EngineArgs", "AsyncEngineArgs", }); internal_static_chalk_graph_v1_BigQuerySource_EngineArgsEntry_descriptor = internal_static_chalk_graph_v1_BigQuerySource_descriptor.getNestedTypes().get(0); internal_static_chalk_graph_v1_BigQuerySource_EngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_BigQuerySource_EngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_BigQuerySource_AsyncEngineArgsEntry_descriptor = internal_static_chalk_graph_v1_BigQuerySource_descriptor.getNestedTypes().get(1); internal_static_chalk_graph_v1_BigQuerySource_AsyncEngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_BigQuerySource_AsyncEngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_CloudSQLSource_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_chalk_graph_v1_CloudSQLSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_CloudSQLSource_descriptor, new java.lang.String[] { "Name", "Db", "User", "Password", "InstanceName", "EngineArgs", "AsyncEngineArgs", }); internal_static_chalk_graph_v1_CloudSQLSource_EngineArgsEntry_descriptor = internal_static_chalk_graph_v1_CloudSQLSource_descriptor.getNestedTypes().get(0); internal_static_chalk_graph_v1_CloudSQLSource_EngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_CloudSQLSource_EngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_CloudSQLSource_AsyncEngineArgsEntry_descriptor = internal_static_chalk_graph_v1_CloudSQLSource_descriptor.getNestedTypes().get(1); internal_static_chalk_graph_v1_CloudSQLSource_AsyncEngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_CloudSQLSource_AsyncEngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_DatabricksSource_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_chalk_graph_v1_DatabricksSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_DatabricksSource_descriptor, new java.lang.String[] { "Name", "Host", "Port", "Db", "HttpPath", "AccessToken", "EngineArgs", "AsyncEngineArgs", }); internal_static_chalk_graph_v1_DatabricksSource_EngineArgsEntry_descriptor = internal_static_chalk_graph_v1_DatabricksSource_descriptor.getNestedTypes().get(0); internal_static_chalk_graph_v1_DatabricksSource_EngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_DatabricksSource_EngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_DatabricksSource_AsyncEngineArgsEntry_descriptor = internal_static_chalk_graph_v1_DatabricksSource_descriptor.getNestedTypes().get(1); internal_static_chalk_graph_v1_DatabricksSource_AsyncEngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_DatabricksSource_AsyncEngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_DynamoDBSource_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_chalk_graph_v1_DynamoDBSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_DynamoDBSource_descriptor, new java.lang.String[] { "Name", "AwsClientIdOverride", "AwsClientSecretOverride", "AwsRegionOverride", "EndpointOverride", "EngineArgs", "AsyncEngineArgs", }); internal_static_chalk_graph_v1_DynamoDBSource_EngineArgsEntry_descriptor = internal_static_chalk_graph_v1_DynamoDBSource_descriptor.getNestedTypes().get(0); internal_static_chalk_graph_v1_DynamoDBSource_EngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_DynamoDBSource_EngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_DynamoDBSource_AsyncEngineArgsEntry_descriptor = internal_static_chalk_graph_v1_DynamoDBSource_descriptor.getNestedTypes().get(1); internal_static_chalk_graph_v1_DynamoDBSource_AsyncEngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_DynamoDBSource_AsyncEngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_MySQLSource_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_chalk_graph_v1_MySQLSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_MySQLSource_descriptor, new java.lang.String[] { "Name", "Host", "Port", "Db", "User", "Password", "EngineArgs", "AsyncEngineArgs", }); internal_static_chalk_graph_v1_MySQLSource_EngineArgsEntry_descriptor = internal_static_chalk_graph_v1_MySQLSource_descriptor.getNestedTypes().get(0); internal_static_chalk_graph_v1_MySQLSource_EngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_MySQLSource_EngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_MySQLSource_AsyncEngineArgsEntry_descriptor = internal_static_chalk_graph_v1_MySQLSource_descriptor.getNestedTypes().get(1); internal_static_chalk_graph_v1_MySQLSource_AsyncEngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_MySQLSource_AsyncEngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_PostgresSource_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_chalk_graph_v1_PostgresSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_PostgresSource_descriptor, new java.lang.String[] { "Name", "Host", "Port", "Db", "User", "Password", "EngineArgs", "AsyncEngineArgs", }); internal_static_chalk_graph_v1_PostgresSource_EngineArgsEntry_descriptor = internal_static_chalk_graph_v1_PostgresSource_descriptor.getNestedTypes().get(0); internal_static_chalk_graph_v1_PostgresSource_EngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_PostgresSource_EngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_PostgresSource_AsyncEngineArgsEntry_descriptor = internal_static_chalk_graph_v1_PostgresSource_descriptor.getNestedTypes().get(1); internal_static_chalk_graph_v1_PostgresSource_AsyncEngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_PostgresSource_AsyncEngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_RedshiftSource_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_chalk_graph_v1_RedshiftSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_RedshiftSource_descriptor, new java.lang.String[] { "Name", "Host", "Port", "Db", "User", "Password", "S3Client", "S3Bucket", "EngineArgs", "AsyncEngineArgs", "UnloadIamRole", }); internal_static_chalk_graph_v1_RedshiftSource_EngineArgsEntry_descriptor = internal_static_chalk_graph_v1_RedshiftSource_descriptor.getNestedTypes().get(0); internal_static_chalk_graph_v1_RedshiftSource_EngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_RedshiftSource_EngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_RedshiftSource_AsyncEngineArgsEntry_descriptor = internal_static_chalk_graph_v1_RedshiftSource_descriptor.getNestedTypes().get(1); internal_static_chalk_graph_v1_RedshiftSource_AsyncEngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_RedshiftSource_AsyncEngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_SnowflakeSource_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_chalk_graph_v1_SnowflakeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_SnowflakeSource_descriptor, new java.lang.String[] { "Name", "Db", "Schema", "Role", "User", "Password", "AccountIdentifier", "Warehouse", "EngineArgs", "AsyncEngineArgs", "PrivateKeyB64", }); internal_static_chalk_graph_v1_SnowflakeSource_EngineArgsEntry_descriptor = internal_static_chalk_graph_v1_SnowflakeSource_descriptor.getNestedTypes().get(0); internal_static_chalk_graph_v1_SnowflakeSource_EngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_SnowflakeSource_EngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_SnowflakeSource_AsyncEngineArgsEntry_descriptor = internal_static_chalk_graph_v1_SnowflakeSource_descriptor.getNestedTypes().get(1); internal_static_chalk_graph_v1_SnowflakeSource_AsyncEngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_SnowflakeSource_AsyncEngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_SQLiteSource_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_chalk_graph_v1_SQLiteSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_SQLiteSource_descriptor, new java.lang.String[] { "Name", "FileName", "EngineArgs", "AsyncEngineArgs", }); internal_static_chalk_graph_v1_SQLiteSource_EngineArgsEntry_descriptor = internal_static_chalk_graph_v1_SQLiteSource_descriptor.getNestedTypes().get(0); internal_static_chalk_graph_v1_SQLiteSource_EngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_SQLiteSource_EngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_SQLiteSource_AsyncEngineArgsEntry_descriptor = internal_static_chalk_graph_v1_SQLiteSource_descriptor.getNestedTypes().get(1); internal_static_chalk_graph_v1_SQLiteSource_AsyncEngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_SQLiteSource_AsyncEngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_SpannerSource_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_chalk_graph_v1_SpannerSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_SpannerSource_descriptor, new java.lang.String[] { "Name", "Project", "Instance", "Db", "CredentialsBase64", "EngineArgs", "AsyncEngineArgs", }); internal_static_chalk_graph_v1_SpannerSource_EngineArgsEntry_descriptor = internal_static_chalk_graph_v1_SpannerSource_descriptor.getNestedTypes().get(0); internal_static_chalk_graph_v1_SpannerSource_EngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_SpannerSource_EngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_SpannerSource_AsyncEngineArgsEntry_descriptor = internal_static_chalk_graph_v1_SpannerSource_descriptor.getNestedTypes().get(1); internal_static_chalk_graph_v1_SpannerSource_AsyncEngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_SpannerSource_AsyncEngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_TrinoSource_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_chalk_graph_v1_TrinoSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_TrinoSource_descriptor, new java.lang.String[] { "Name", "Host", "Port", "Catalog", "Schema", "User", "Password", "EngineArgs", "AsyncEngineArgs", }); internal_static_chalk_graph_v1_TrinoSource_EngineArgsEntry_descriptor = internal_static_chalk_graph_v1_TrinoSource_descriptor.getNestedTypes().get(0); internal_static_chalk_graph_v1_TrinoSource_EngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_TrinoSource_EngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_graph_v1_TrinoSource_AsyncEngineArgsEntry_descriptor = internal_static_chalk_graph_v1_TrinoSource_descriptor.getNestedTypes().get(1); internal_static_chalk_graph_v1_TrinoSource_AsyncEngineArgsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_graph_v1_TrinoSource_AsyncEngineArgsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); ai.chalk.protos.chalk.arrow.v1.ArrowProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/SpannerSource.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/sources.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.SpannerSource} */ public final class SpannerSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.SpannerSource) SpannerSourceOrBuilder { private static final long serialVersionUID = 0L; // Use SpannerSource.newBuilder() to construct. private SpannerSource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private SpannerSource() { name_ = ""; project_ = ""; instance_ = ""; db_ = ""; credentialsBase64_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SpannerSource(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SpannerSource_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 6: return internalGetEngineArgs(); case 7: return internalGetAsyncEngineArgs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SpannerSource_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.SpannerSource.class, ai.chalk.protos.chalk.graph.v1.SpannerSource.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 PROJECT_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** * <code>string project = 2 [json_name = "project"];</code> * @return The project. */ @java.lang.Override public java.lang.String getProject() { java.lang.Object ref = project_; 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(); project_ = s; return s; } } /** * <code>string project = 2 [json_name = "project"];</code> * @return The bytes for project. */ @java.lang.Override public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); project_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INSTANCE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object instance_ = ""; /** * <code>string instance = 3 [json_name = "instance"];</code> * @return The instance. */ @java.lang.Override public java.lang.String getInstance() { java.lang.Object ref = instance_; 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(); instance_ = s; return s; } } /** * <code>string instance = 3 [json_name = "instance"];</code> * @return The bytes for instance. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instance_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DB_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object db_ = ""; /** * <code>string db = 4 [json_name = "db"];</code> * @return The db. */ @java.lang.Override public java.lang.String getDb() { java.lang.Object ref = db_; 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(); db_ = s; return s; } } /** * <code>string db = 4 [json_name = "db"];</code> * @return The bytes for db. */ @java.lang.Override public com.google.protobuf.ByteString getDbBytes() { java.lang.Object ref = db_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); db_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREDENTIALS_BASE64_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object credentialsBase64_ = ""; /** * <code>string credentials_base64 = 5 [json_name = "credentialsBase64"];</code> * @return The credentialsBase64. */ @java.lang.Override public java.lang.String getCredentialsBase64() { java.lang.Object ref = credentialsBase64_; 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(); credentialsBase64_ = s; return s; } } /** * <code>string credentials_base64 = 5 [json_name = "credentialsBase64"];</code> * @return The bytes for credentialsBase64. */ @java.lang.Override public com.google.protobuf.ByteString getCredentialsBase64Bytes() { java.lang.Object ref = credentialsBase64_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); credentialsBase64_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENGINE_ARGS_FIELD_NUMBER = 6; private static final class EngineArgsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue>newDefaultInstance( ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SpannerSource_EngineArgsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> engineArgs_; private com.google.protobuf.MapField<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> internalGetEngineArgs() { if (engineArgs_ == null) { return com.google.protobuf.MapField.emptyMapField( EngineArgsDefaultEntryHolder.defaultEntry); } return engineArgs_; } public int getEngineArgsCount() { return internalGetEngineArgs().getMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ @java.lang.Override public boolean containsEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetEngineArgs().getMap().containsKey(key); } /** * Use {@link #getEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgs() { return getEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgsMap() { return internalGetEngineArgs().getMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetEngineArgs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetEngineArgs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ASYNC_ENGINE_ARGS_FIELD_NUMBER = 7; private static final class AsyncEngineArgsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue>newDefaultInstance( ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SpannerSource_AsyncEngineArgsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> asyncEngineArgs_; private com.google.protobuf.MapField<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> internalGetAsyncEngineArgs() { if (asyncEngineArgs_ == null) { return com.google.protobuf.MapField.emptyMapField( AsyncEngineArgsDefaultEntryHolder.defaultEntry); } return asyncEngineArgs_; } public int getAsyncEngineArgsCount() { return internalGetAsyncEngineArgs().getMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public boolean containsAsyncEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAsyncEngineArgs().getMap().containsKey(key); } /** * Use {@link #getAsyncEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgs() { return getAsyncEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgsMap() { return internalGetAsyncEngineArgs().getMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetAsyncEngineArgs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetAsyncEngineArgs().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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(db_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, db_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(credentialsBase64_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, credentialsBase64_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetEngineArgs(), EngineArgsDefaultEntryHolder.defaultEntry, 6); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAsyncEngineArgs(), AsyncEngineArgsDefaultEntryHolder.defaultEntry, 7); 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(project_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instance_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(db_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, db_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(credentialsBase64_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, credentialsBase64_); } for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> entry : internalGetEngineArgs().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> engineArgs__ = EngineArgsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, engineArgs__); } for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> entry : internalGetAsyncEngineArgs().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> asyncEngineArgs__ = AsyncEngineArgsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, asyncEngineArgs__); } 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.graph.v1.SpannerSource)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.SpannerSource other = (ai.chalk.protos.chalk.graph.v1.SpannerSource) obj; if (!getName() .equals(other.getName())) return false; if (!getProject() .equals(other.getProject())) return false; if (!getInstance() .equals(other.getInstance())) return false; if (!getDb() .equals(other.getDb())) return false; if (!getCredentialsBase64() .equals(other.getCredentialsBase64())) return false; if (!internalGetEngineArgs().equals( other.internalGetEngineArgs())) return false; if (!internalGetAsyncEngineArgs().equals( other.internalGetAsyncEngineArgs())) 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) + PROJECT_FIELD_NUMBER; hash = (53 * hash) + getProject().hashCode(); hash = (37 * hash) + INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getInstance().hashCode(); hash = (37 * hash) + DB_FIELD_NUMBER; hash = (53 * hash) + getDb().hashCode(); hash = (37 * hash) + CREDENTIALS_BASE64_FIELD_NUMBER; hash = (53 * hash) + getCredentialsBase64().hashCode(); if (!internalGetEngineArgs().getMap().isEmpty()) { hash = (37 * hash) + ENGINE_ARGS_FIELD_NUMBER; hash = (53 * hash) + internalGetEngineArgs().hashCode(); } if (!internalGetAsyncEngineArgs().getMap().isEmpty()) { hash = (37 * hash) + ASYNC_ENGINE_ARGS_FIELD_NUMBER; hash = (53 * hash) + internalGetAsyncEngineArgs().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.SpannerSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.SpannerSource 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.graph.v1.SpannerSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.SpannerSource 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.graph.v1.SpannerSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.SpannerSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.SpannerSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.SpannerSource 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.graph.v1.SpannerSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.SpannerSource 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.graph.v1.SpannerSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.SpannerSource 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.graph.v1.SpannerSource 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.graph.v1.SpannerSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.SpannerSource) ai.chalk.protos.chalk.graph.v1.SpannerSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SpannerSource_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 6: return internalGetEngineArgs(); case 7: return internalGetAsyncEngineArgs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 6: return internalGetMutableEngineArgs(); case 7: return internalGetMutableAsyncEngineArgs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SpannerSource_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.SpannerSource.class, ai.chalk.protos.chalk.graph.v1.SpannerSource.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.SpannerSource.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; project_ = ""; instance_ = ""; db_ = ""; credentialsBase64_ = ""; internalGetMutableEngineArgs().clear(); internalGetMutableAsyncEngineArgs().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_SpannerSource_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SpannerSource getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.SpannerSource.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SpannerSource build() { ai.chalk.protos.chalk.graph.v1.SpannerSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SpannerSource buildPartial() { ai.chalk.protos.chalk.graph.v1.SpannerSource result = new ai.chalk.protos.chalk.graph.v1.SpannerSource(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.SpannerSource result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.project_ = project_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.instance_ = instance_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.db_ = db_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.credentialsBase64_ = credentialsBase64_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.engineArgs_ = internalGetEngineArgs().build(EngineArgsDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000040) != 0)) { result.asyncEngineArgs_ = internalGetAsyncEngineArgs().build(AsyncEngineArgsDefaultEntryHolder.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.graph.v1.SpannerSource) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.SpannerSource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.SpannerSource other) { if (other == ai.chalk.protos.chalk.graph.v1.SpannerSource.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getProject().isEmpty()) { project_ = other.project_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getInstance().isEmpty()) { instance_ = other.instance_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getDb().isEmpty()) { db_ = other.db_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getCredentialsBase64().isEmpty()) { credentialsBase64_ = other.credentialsBase64_; bitField0_ |= 0x00000010; onChanged(); } internalGetMutableEngineArgs().mergeFrom( other.internalGetEngineArgs()); bitField0_ |= 0x00000020; internalGetMutableAsyncEngineArgs().mergeFrom( other.internalGetAsyncEngineArgs()); bitField0_ |= 0x00000040; 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: { project_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { instance_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { db_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { credentialsBase64_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> engineArgs__ = input.readMessage( EngineArgsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableEngineArgs().ensureBuilderMap().put( engineArgs__.getKey(), engineArgs__.getValue()); bitField0_ |= 0x00000020; break; } // case 50 case 58: { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> asyncEngineArgs__ = input.readMessage( AsyncEngineArgsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAsyncEngineArgs().ensureBuilderMap().put( asyncEngineArgs__.getKey(), asyncEngineArgs__.getValue()); 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 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 project_ = ""; /** * <code>string project = 2 [json_name = "project"];</code> * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string project = 2 [json_name = "project"];</code> * @return The bytes for project. */ public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); project_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string project = 2 [json_name = "project"];</code> * @param value The project to set. * @return This builder for chaining. */ public Builder setProject( java.lang.String value) { if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>string project = 2 [json_name = "project"];</code> * @return This builder for chaining. */ public Builder clearProject() { project_ = getDefaultInstance().getProject(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string project = 2 [json_name = "project"];</code> * @param value The bytes for project to set. * @return This builder for chaining. */ public Builder setProjectBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object instance_ = ""; /** * <code>string instance = 3 [json_name = "instance"];</code> * @return The instance. */ public java.lang.String getInstance() { java.lang.Object ref = instance_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instance_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string instance = 3 [json_name = "instance"];</code> * @return The bytes for instance. */ public com.google.protobuf.ByteString getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instance_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string instance = 3 [json_name = "instance"];</code> * @param value The instance to set. * @return This builder for chaining. */ public Builder setInstance( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instance_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>string instance = 3 [json_name = "instance"];</code> * @return This builder for chaining. */ public Builder clearInstance() { instance_ = getDefaultInstance().getInstance(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>string instance = 3 [json_name = "instance"];</code> * @param value The bytes for instance to set. * @return This builder for chaining. */ public Builder setInstanceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instance_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object db_ = ""; /** * <code>string db = 4 [json_name = "db"];</code> * @return The db. */ public java.lang.String getDb() { java.lang.Object ref = db_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); db_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string db = 4 [json_name = "db"];</code> * @return The bytes for db. */ public com.google.protobuf.ByteString getDbBytes() { java.lang.Object ref = db_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); db_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string db = 4 [json_name = "db"];</code> * @param value The db to set. * @return This builder for chaining. */ public Builder setDb( java.lang.String value) { if (value == null) { throw new NullPointerException(); } db_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>string db = 4 [json_name = "db"];</code> * @return This builder for chaining. */ public Builder clearDb() { db_ = getDefaultInstance().getDb(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * <code>string db = 4 [json_name = "db"];</code> * @param value The bytes for db to set. * @return This builder for chaining. */ public Builder setDbBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); db_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object credentialsBase64_ = ""; /** * <code>string credentials_base64 = 5 [json_name = "credentialsBase64"];</code> * @return The credentialsBase64. */ public java.lang.String getCredentialsBase64() { java.lang.Object ref = credentialsBase64_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); credentialsBase64_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string credentials_base64 = 5 [json_name = "credentialsBase64"];</code> * @return The bytes for credentialsBase64. */ public com.google.protobuf.ByteString getCredentialsBase64Bytes() { java.lang.Object ref = credentialsBase64_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); credentialsBase64_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string credentials_base64 = 5 [json_name = "credentialsBase64"];</code> * @param value The credentialsBase64 to set. * @return This builder for chaining. */ public Builder setCredentialsBase64( java.lang.String value) { if (value == null) { throw new NullPointerException(); } credentialsBase64_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>string credentials_base64 = 5 [json_name = "credentialsBase64"];</code> * @return This builder for chaining. */ public Builder clearCredentialsBase64() { credentialsBase64_ = getDefaultInstance().getCredentialsBase64(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * <code>string credentials_base64 = 5 [json_name = "credentialsBase64"];</code> * @param value The bytes for credentialsBase64 to set. * @return This builder for chaining. */ public Builder setCredentialsBase64Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); credentialsBase64_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private static final class EngineArgsConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue> { @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue build(ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder val) { if (val instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { return (ai.chalk.protos.chalk.arrow.v1.ScalarValue) val; } return ((ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry() { return EngineArgsDefaultEntryHolder.defaultEntry; } }; private static final EngineArgsConverter engineArgsConverter = new EngineArgsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> engineArgs_; private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetEngineArgs() { if (engineArgs_ == null) { return new com.google.protobuf.MapFieldBuilder<>(engineArgsConverter); } return engineArgs_; } private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetMutableEngineArgs() { if (engineArgs_ == null) { engineArgs_ = new com.google.protobuf.MapFieldBuilder<>(engineArgsConverter); } bitField0_ |= 0x00000020; onChanged(); return engineArgs_; } public int getEngineArgsCount() { return internalGetEngineArgs().ensureBuilderMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ @java.lang.Override public boolean containsEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetEngineArgs().ensureBuilderMap().containsKey(key); } /** * Use {@link #getEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgs() { return getEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgsMap() { return internalGetEngineArgs().getImmutableMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableEngineArgs().ensureBuilderMap(); return map.containsKey(key) ? engineArgsConverter.build(map.get(key)) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableEngineArgs().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return engineArgsConverter.build(map.get(key)); } public Builder clearEngineArgs() { bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableEngineArgs().clear(); return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ public Builder removeEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableEngineArgs().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getMutableEngineArgs() { bitField0_ |= 0x00000020; return internalGetMutableEngineArgs().ensureMessageMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ public Builder putEngineArgs( java.lang.String key, ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableEngineArgs().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000020; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ public Builder putAllEngineArgs( java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> values) { for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableEngineArgs().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000020; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder putEngineArgsBuilderIfAbsent( java.lang.String key) { java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> builderMap = internalGetMutableEngineArgs().ensureBuilderMap(); ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder entry = builderMap.get(key); if (entry == null) { entry = ai.chalk.protos.chalk.arrow.v1.ScalarValue.newBuilder(); builderMap.put(key, entry); } if (entry instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { entry = ((ai.chalk.protos.chalk.arrow.v1.ScalarValue) entry).toBuilder(); builderMap.put(key, entry); } return (ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder) entry; } private static final class AsyncEngineArgsConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue> { @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue build(ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder val) { if (val instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { return (ai.chalk.protos.chalk.arrow.v1.ScalarValue) val; } return ((ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry() { return AsyncEngineArgsDefaultEntryHolder.defaultEntry; } }; private static final AsyncEngineArgsConverter asyncEngineArgsConverter = new AsyncEngineArgsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> asyncEngineArgs_; private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetAsyncEngineArgs() { if (asyncEngineArgs_ == null) { return new com.google.protobuf.MapFieldBuilder<>(asyncEngineArgsConverter); } return asyncEngineArgs_; } private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetMutableAsyncEngineArgs() { if (asyncEngineArgs_ == null) { asyncEngineArgs_ = new com.google.protobuf.MapFieldBuilder<>(asyncEngineArgsConverter); } bitField0_ |= 0x00000040; onChanged(); return asyncEngineArgs_; } public int getAsyncEngineArgsCount() { return internalGetAsyncEngineArgs().ensureBuilderMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public boolean containsAsyncEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAsyncEngineArgs().ensureBuilderMap().containsKey(key); } /** * Use {@link #getAsyncEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgs() { return getAsyncEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgsMap() { return internalGetAsyncEngineArgs().getImmutableMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableAsyncEngineArgs().ensureBuilderMap(); return map.containsKey(key) ? asyncEngineArgsConverter.build(map.get(key)) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableAsyncEngineArgs().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return asyncEngineArgsConverter.build(map.get(key)); } public Builder clearAsyncEngineArgs() { bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableAsyncEngineArgs().clear(); return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ public Builder removeAsyncEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAsyncEngineArgs().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getMutableAsyncEngineArgs() { bitField0_ |= 0x00000040; return internalGetMutableAsyncEngineArgs().ensureMessageMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ public Builder putAsyncEngineArgs( java.lang.String key, ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAsyncEngineArgs().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000040; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ public Builder putAllAsyncEngineArgs( java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> values) { for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableAsyncEngineArgs().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000040; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder putAsyncEngineArgsBuilderIfAbsent( java.lang.String key) { java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> builderMap = internalGetMutableAsyncEngineArgs().ensureBuilderMap(); ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder entry = builderMap.get(key); if (entry == null) { entry = ai.chalk.protos.chalk.arrow.v1.ScalarValue.newBuilder(); builderMap.put(key, entry); } if (entry instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { entry = ((ai.chalk.protos.chalk.arrow.v1.ScalarValue) entry).toBuilder(); builderMap.put(key, entry); } return (ai.chalk.protos.chalk.arrow.v1.ScalarValue.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.graph.v1.SpannerSource) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.SpannerSource) private static final ai.chalk.protos.chalk.graph.v1.SpannerSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.SpannerSource(); } public static ai.chalk.protos.chalk.graph.v1.SpannerSource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<SpannerSource> PARSER = new com.google.protobuf.AbstractParser<SpannerSource>() { @java.lang.Override public SpannerSource 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<SpannerSource> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<SpannerSource> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.SpannerSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/SpannerSourceOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/sources.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface SpannerSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.SpannerSource) 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 project = 2 [json_name = "project"];</code> * @return The project. */ java.lang.String getProject(); /** * <code>string project = 2 [json_name = "project"];</code> * @return The bytes for project. */ com.google.protobuf.ByteString getProjectBytes(); /** * <code>string instance = 3 [json_name = "instance"];</code> * @return The instance. */ java.lang.String getInstance(); /** * <code>string instance = 3 [json_name = "instance"];</code> * @return The bytes for instance. */ com.google.protobuf.ByteString getInstanceBytes(); /** * <code>string db = 4 [json_name = "db"];</code> * @return The db. */ java.lang.String getDb(); /** * <code>string db = 4 [json_name = "db"];</code> * @return The bytes for db. */ com.google.protobuf.ByteString getDbBytes(); /** * <code>string credentials_base64 = 5 [json_name = "credentialsBase64"];</code> * @return The credentialsBase64. */ java.lang.String getCredentialsBase64(); /** * <code>string credentials_base64 = 5 [json_name = "credentialsBase64"];</code> * @return The bytes for credentialsBase64. */ com.google.protobuf.ByteString getCredentialsBase64Bytes(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ int getEngineArgsCount(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ boolean containsEngineArgs( java.lang.String key); /** * Use {@link #getEngineArgsMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgs(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgsMap(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 6 [json_name = "engineArgs"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrThrow( java.lang.String key); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ int getAsyncEngineArgsCount(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ boolean containsAsyncEngineArgs( java.lang.String key); /** * Use {@link #getAsyncEngineArgsMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgs(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgsMap(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 7 [json_name = "asyncEngineArgs"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrThrow( java.lang.String key); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StreamKey.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.StreamKey} */ public final class StreamKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.StreamKey) StreamKeyOrBuilder { private static final long serialVersionUID = 0L; // Use StreamKey.newBuilder() to construct. private StreamKey(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private StreamKey() { key_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamKey(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamKey_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StreamKey.class, ai.chalk.protos.chalk.graph.v1.StreamKey.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** * <code>string key = 1 [json_name = "key"];</code> * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** * <code>string key = 1 [json_name = "key"];</code> * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FEATURE_FIELD_NUMBER = 2; private ai.chalk.protos.chalk.graph.v1.FeatureReference feature_; /** * <code>.chalk.graph.v1.FeatureReference feature = 2 [json_name = "feature"];</code> * @return Whether the feature field is set. */ @java.lang.Override public boolean hasFeature() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.graph.v1.FeatureReference feature = 2 [json_name = "feature"];</code> * @return The feature. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureReference getFeature() { return feature_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : feature_; } /** * <code>.chalk.graph.v1.FeatureReference feature = 2 [json_name = "feature"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getFeatureOrBuilder() { return feature_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : feature_; } 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(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getFeature()); } 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(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getFeature()); } 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.graph.v1.StreamKey)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.StreamKey other = (ai.chalk.protos.chalk.graph.v1.StreamKey) obj; if (!getKey() .equals(other.getKey())) return false; if (hasFeature() != other.hasFeature()) return false; if (hasFeature()) { if (!getFeature() .equals(other.getFeature())) 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) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); if (hasFeature()) { hash = (37 * hash) + FEATURE_FIELD_NUMBER; hash = (53 * hash) + getFeature().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.StreamKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamKey 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.graph.v1.StreamKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamKey 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.graph.v1.StreamKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.StreamKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamKey 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.graph.v1.StreamKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamKey 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.graph.v1.StreamKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamKey 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.graph.v1.StreamKey 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.graph.v1.StreamKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.StreamKey) ai.chalk.protos.chalk.graph.v1.StreamKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamKey_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StreamKey.class, ai.chalk.protos.chalk.graph.v1.StreamKey.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.StreamKey.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFeatureFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = ""; feature_ = null; if (featureBuilder_ != null) { featureBuilder_.dispose(); featureBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamKey_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamKey getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.StreamKey.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamKey build() { ai.chalk.protos.chalk.graph.v1.StreamKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamKey buildPartial() { ai.chalk.protos.chalk.graph.v1.StreamKey result = new ai.chalk.protos.chalk.graph.v1.StreamKey(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.StreamKey result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.feature_ = featureBuilder_ == null ? feature_ : featureBuilder_.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.graph.v1.StreamKey) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.StreamKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.StreamKey other) { if (other == ai.chalk.protos.chalk.graph.v1.StreamKey.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasFeature()) { mergeFeature(other.getFeature()); } 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: { key_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getFeatureFieldBuilder().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 key_ = ""; /** * <code>string key = 1 [json_name = "key"];</code> * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string key = 1 [json_name = "key"];</code> * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string key = 1 [json_name = "key"];</code> * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string key = 1 [json_name = "key"];</code> * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string key = 1 [json_name = "key"];</code> * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private ai.chalk.protos.chalk.graph.v1.FeatureReference feature_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder> featureBuilder_; /** * <code>.chalk.graph.v1.FeatureReference feature = 2 [json_name = "feature"];</code> * @return Whether the feature field is set. */ public boolean hasFeature() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.graph.v1.FeatureReference feature = 2 [json_name = "feature"];</code> * @return The feature. */ public ai.chalk.protos.chalk.graph.v1.FeatureReference getFeature() { if (featureBuilder_ == null) { return feature_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : feature_; } else { return featureBuilder_.getMessage(); } } /** * <code>.chalk.graph.v1.FeatureReference feature = 2 [json_name = "feature"];</code> */ public Builder setFeature(ai.chalk.protos.chalk.graph.v1.FeatureReference value) { if (featureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } feature_ = value; } else { featureBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.graph.v1.FeatureReference feature = 2 [json_name = "feature"];</code> */ public Builder setFeature( ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder builderForValue) { if (featureBuilder_ == null) { feature_ = builderForValue.build(); } else { featureBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.graph.v1.FeatureReference feature = 2 [json_name = "feature"];</code> */ public Builder mergeFeature(ai.chalk.protos.chalk.graph.v1.FeatureReference value) { if (featureBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && feature_ != null && feature_ != ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance()) { getFeatureBuilder().mergeFrom(value); } else { feature_ = value; } } else { featureBuilder_.mergeFrom(value); } if (feature_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * <code>.chalk.graph.v1.FeatureReference feature = 2 [json_name = "feature"];</code> */ public Builder clearFeature() { bitField0_ = (bitField0_ & ~0x00000002); feature_ = null; if (featureBuilder_ != null) { featureBuilder_.dispose(); featureBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.graph.v1.FeatureReference feature = 2 [json_name = "feature"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder getFeatureBuilder() { bitField0_ |= 0x00000002; onChanged(); return getFeatureFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.FeatureReference feature = 2 [json_name = "feature"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getFeatureOrBuilder() { if (featureBuilder_ != null) { return featureBuilder_.getMessageOrBuilder(); } else { return feature_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : feature_; } } /** * <code>.chalk.graph.v1.FeatureReference feature = 2 [json_name = "feature"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder> getFeatureFieldBuilder() { if (featureBuilder_ == null) { featureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder>( getFeature(), getParentForChildren(), isClean()); feature_ = null; } return featureBuilder_; } @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.graph.v1.StreamKey) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.StreamKey) private static final ai.chalk.protos.chalk.graph.v1.StreamKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.StreamKey(); } public static ai.chalk.protos.chalk.graph.v1.StreamKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<StreamKey> PARSER = new com.google.protobuf.AbstractParser<StreamKey>() { @java.lang.Override public StreamKey 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<StreamKey> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<StreamKey> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StreamKeyOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface StreamKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.StreamKey) com.google.protobuf.MessageOrBuilder { /** * <code>string key = 1 [json_name = "key"];</code> * @return The key. */ java.lang.String getKey(); /** * <code>string key = 1 [json_name = "key"];</code> * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * <code>.chalk.graph.v1.FeatureReference feature = 2 [json_name = "feature"];</code> * @return Whether the feature field is set. */ boolean hasFeature(); /** * <code>.chalk.graph.v1.FeatureReference feature = 2 [json_name = "feature"];</code> * @return The feature. */ ai.chalk.protos.chalk.graph.v1.FeatureReference getFeature(); /** * <code>.chalk.graph.v1.FeatureReference feature = 2 [json_name = "feature"];</code> */ ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getFeatureOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StreamResolver.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.StreamResolver} */ public final class StreamResolver extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.StreamResolver) StreamResolverOrBuilder { private static final long serialVersionUID = 0L; // Use StreamResolver.newBuilder() to construct. private StreamResolver(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private StreamResolver() { fqn_ = ""; params_ = java.util.Collections.emptyList(); outputs_ = java.util.Collections.emptyList(); keys_ = java.util.Collections.emptyList(); mode_ = 0; environments_ = com.google.protobuf.LazyStringArrayList.emptyList(); timestampAttributeName_ = ""; owner_ = ""; doc_ = ""; machineType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamResolver(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolver_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolver_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StreamResolver.class, ai.chalk.protos.chalk.graph.v1.StreamResolver.Builder.class); } private int bitField0_; public static final int FQN_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object fqn_ = ""; /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return The fqn. */ @java.lang.Override public java.lang.String getFqn() { java.lang.Object ref = fqn_; 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(); fqn_ = s; return s; } } /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return The bytes for fqn. */ @java.lang.Override public com.google.protobuf.ByteString getFqnBytes() { java.lang.Object ref = fqn_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fqn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARAMS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.graph.v1.StreamResolverParam> params_; /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.graph.v1.StreamResolverParam> getParamsList() { return params_; } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.graph.v1.StreamResolverParamOrBuilder> getParamsOrBuilderList() { return params_; } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ @java.lang.Override public int getParamsCount() { return params_.size(); } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParam getParams(int index) { return params_.get(index); } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamOrBuilder getParamsOrBuilder( int index) { return params_.get(index); } public static final int OUTPUTS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.graph.v1.ResolverOutput> outputs_; /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.graph.v1.ResolverOutput> getOutputsList() { return outputs_; } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.graph.v1.ResolverOutputOrBuilder> getOutputsOrBuilderList() { return outputs_; } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ @java.lang.Override public int getOutputsCount() { return outputs_.size(); } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverOutput getOutputs(int index) { return outputs_.get(index); } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverOutputOrBuilder getOutputsOrBuilder( int index) { return outputs_.get(index); } public static final int EXPLICIT_SCHEMA_FIELD_NUMBER = 4; private ai.chalk.protos.chalk.arrow.v1.ArrowType explicitSchema_; /** * <code>.chalk.arrow.v1.ArrowType explicit_schema = 4 [json_name = "explicitSchema"];</code> * @return Whether the explicitSchema field is set. */ @java.lang.Override public boolean hasExplicitSchema() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.arrow.v1.ArrowType explicit_schema = 4 [json_name = "explicitSchema"];</code> * @return The explicitSchema. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowType getExplicitSchema() { return explicitSchema_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : explicitSchema_; } /** * <code>.chalk.arrow.v1.ArrowType explicit_schema = 4 [json_name = "explicitSchema"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getExplicitSchemaOrBuilder() { return explicitSchema_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : explicitSchema_; } public static final int KEYS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.graph.v1.StreamKey> keys_; /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.graph.v1.StreamKey> getKeysList() { return keys_; } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.graph.v1.StreamKeyOrBuilder> getKeysOrBuilderList() { return keys_; } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ @java.lang.Override public int getKeysCount() { return keys_.size(); } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamKey getKeys(int index) { return keys_.get(index); } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamKeyOrBuilder getKeysOrBuilder( int index) { return keys_.get(index); } public static final int SOURCE_FIELD_NUMBER = 6; private ai.chalk.protos.chalk.graph.v1.StreamSourceReference source_; /** * <code>.chalk.graph.v1.StreamSourceReference source = 6 [json_name = "source"];</code> * @return Whether the source field is set. */ @java.lang.Override public boolean hasSource() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.graph.v1.StreamSourceReference source = 6 [json_name = "source"];</code> * @return The source. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSourceReference getSource() { return source_ == null ? ai.chalk.protos.chalk.graph.v1.StreamSourceReference.getDefaultInstance() : source_; } /** * <code>.chalk.graph.v1.StreamSourceReference source = 6 [json_name = "source"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSourceReferenceOrBuilder getSourceOrBuilder() { return source_ == null ? ai.chalk.protos.chalk.graph.v1.StreamSourceReference.getDefaultInstance() : source_; } public static final int PARSE_INFO_FIELD_NUMBER = 7; private ai.chalk.protos.chalk.graph.v1.ParseInfo parseInfo_; /** * <code>.chalk.graph.v1.ParseInfo parse_info = 7 [json_name = "parseInfo"];</code> * @return Whether the parseInfo field is set. */ @java.lang.Override public boolean hasParseInfo() { return ((bitField0_ & 0x00000004) != 0); } /** * <code>.chalk.graph.v1.ParseInfo parse_info = 7 [json_name = "parseInfo"];</code> * @return The parseInfo. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ParseInfo getParseInfo() { return parseInfo_ == null ? ai.chalk.protos.chalk.graph.v1.ParseInfo.getDefaultInstance() : parseInfo_; } /** * <code>.chalk.graph.v1.ParseInfo parse_info = 7 [json_name = "parseInfo"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ParseInfoOrBuilder getParseInfoOrBuilder() { return parseInfo_ == null ? ai.chalk.protos.chalk.graph.v1.ParseInfo.getDefaultInstance() : parseInfo_; } public static final int MODE_FIELD_NUMBER = 8; private int mode_ = 0; /** * <code>.chalk.graph.v1.WindowMode mode = 8 [json_name = "mode"];</code> * @return The enum numeric value on the wire for mode. */ @java.lang.Override public int getModeValue() { return mode_; } /** * <code>.chalk.graph.v1.WindowMode mode = 8 [json_name = "mode"];</code> * @return The mode. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowMode getMode() { ai.chalk.protos.chalk.graph.v1.WindowMode result = ai.chalk.protos.chalk.graph.v1.WindowMode.forNumber(mode_); return result == null ? ai.chalk.protos.chalk.graph.v1.WindowMode.UNRECOGNIZED : result; } public static final int ENVIRONMENTS_FIELD_NUMBER = 9; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList environments_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @return A list containing the environments. */ public com.google.protobuf.ProtocolStringList getEnvironmentsList() { return environments_; } /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @return The count of environments. */ public int getEnvironmentsCount() { return environments_.size(); } /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @param index The index of the element to return. * @return The environments at the given index. */ public java.lang.String getEnvironments(int index) { return environments_.get(index); } /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @param index The index of the value to return. * @return The bytes of the environments at the given index. */ public com.google.protobuf.ByteString getEnvironmentsBytes(int index) { return environments_.getByteString(index); } public static final int TIMEOUT_DURATION_FIELD_NUMBER = 10; private com.google.protobuf.Duration timeoutDuration_; /** * <code>.google.protobuf.Duration timeout_duration = 10 [json_name = "timeoutDuration"];</code> * @return Whether the timeoutDuration field is set. */ @java.lang.Override public boolean hasTimeoutDuration() { return ((bitField0_ & 0x00000008) != 0); } /** * <code>.google.protobuf.Duration timeout_duration = 10 [json_name = "timeoutDuration"];</code> * @return The timeoutDuration. */ @java.lang.Override public com.google.protobuf.Duration getTimeoutDuration() { return timeoutDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeoutDuration_; } /** * <code>.google.protobuf.Duration timeout_duration = 10 [json_name = "timeoutDuration"];</code> */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeoutDurationOrBuilder() { return timeoutDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeoutDuration_; } public static final int TIMESTAMP_ATTRIBUTE_NAME_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object timestampAttributeName_ = ""; /** * <code>optional string timestamp_attribute_name = 11 [json_name = "timestampAttributeName"];</code> * @return Whether the timestampAttributeName field is set. */ @java.lang.Override public boolean hasTimestampAttributeName() { return ((bitField0_ & 0x00000010) != 0); } /** * <code>optional string timestamp_attribute_name = 11 [json_name = "timestampAttributeName"];</code> * @return The timestampAttributeName. */ @java.lang.Override public java.lang.String getTimestampAttributeName() { java.lang.Object ref = timestampAttributeName_; 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(); timestampAttributeName_ = s; return s; } } /** * <code>optional string timestamp_attribute_name = 11 [json_name = "timestampAttributeName"];</code> * @return The bytes for timestampAttributeName. */ @java.lang.Override public com.google.protobuf.ByteString getTimestampAttributeNameBytes() { java.lang.Object ref = timestampAttributeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); timestampAttributeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OWNER_FIELD_NUMBER = 12; @SuppressWarnings("serial") private volatile java.lang.Object owner_ = ""; /** * <code>optional string owner = 12 [json_name = "owner"];</code> * @return Whether the owner field is set. */ @java.lang.Override public boolean hasOwner() { return ((bitField0_ & 0x00000020) != 0); } /** * <code>optional string owner = 12 [json_name = "owner"];</code> * @return The owner. */ @java.lang.Override public java.lang.String getOwner() { java.lang.Object ref = owner_; 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(); owner_ = s; return s; } } /** * <code>optional string owner = 12 [json_name = "owner"];</code> * @return The bytes for owner. */ @java.lang.Override public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOC_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object doc_ = ""; /** * <code>optional string doc = 13 [json_name = "doc"];</code> * @return Whether the doc field is set. */ @java.lang.Override public boolean hasDoc() { return ((bitField0_ & 0x00000040) != 0); } /** * <code>optional string doc = 13 [json_name = "doc"];</code> * @return The doc. */ @java.lang.Override public java.lang.String getDoc() { java.lang.Object ref = doc_; 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(); doc_ = s; return s; } } /** * <code>optional string doc = 13 [json_name = "doc"];</code> * @return The bytes for doc. */ @java.lang.Override public com.google.protobuf.ByteString getDocBytes() { java.lang.Object ref = doc_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); doc_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MACHINE_TYPE_FIELD_NUMBER = 14; @SuppressWarnings("serial") private volatile java.lang.Object machineType_ = ""; /** * <code>optional string machine_type = 14 [json_name = "machineType"];</code> * @return Whether the machineType field is set. */ @java.lang.Override public boolean hasMachineType() { return ((bitField0_ & 0x00000080) != 0); } /** * <code>optional string machine_type = 14 [json_name = "machineType"];</code> * @return The machineType. */ @java.lang.Override public java.lang.String getMachineType() { java.lang.Object ref = machineType_; 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(); machineType_ = s; return s; } } /** * <code>optional string machine_type = 14 [json_name = "machineType"];</code> * @return The bytes for machineType. */ @java.lang.Override public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); machineType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FUNCTION_FIELD_NUMBER = 15; private ai.chalk.protos.chalk.graph.v1.FunctionReference function_; /** * <code>.chalk.graph.v1.FunctionReference function = 15 [json_name = "function"];</code> * @return Whether the function field is set. */ @java.lang.Override public boolean hasFunction() { return ((bitField0_ & 0x00000100) != 0); } /** * <code>.chalk.graph.v1.FunctionReference function = 15 [json_name = "function"];</code> * @return The function. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FunctionReference getFunction() { return function_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : function_; } /** * <code>.chalk.graph.v1.FunctionReference function = 15 [json_name = "function"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder getFunctionOrBuilder() { return function_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : function_; } 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(fqn_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fqn_); } for (int i = 0; i < params_.size(); i++) { output.writeMessage(2, params_.get(i)); } for (int i = 0; i < outputs_.size(); i++) { output.writeMessage(3, outputs_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getExplicitSchema()); } for (int i = 0; i < keys_.size(); i++) { output.writeMessage(5, keys_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getSource()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getParseInfo()); } if (mode_ != ai.chalk.protos.chalk.graph.v1.WindowMode.WINDOW_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(8, mode_); } for (int i = 0; i < environments_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, environments_.getRaw(i)); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(10, getTimeoutDuration()); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, timestampAttributeName_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, owner_); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, doc_); } if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, machineType_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(15, getFunction()); } 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(fqn_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fqn_); } for (int i = 0; i < params_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, params_.get(i)); } for (int i = 0; i < outputs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, outputs_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getExplicitSchema()); } for (int i = 0; i < keys_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, keys_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getSource()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getParseInfo()); } if (mode_ != ai.chalk.protos.chalk.graph.v1.WindowMode.WINDOW_MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, mode_); } { int dataSize = 0; for (int i = 0; i < environments_.size(); i++) { dataSize += computeStringSizeNoTag(environments_.getRaw(i)); } size += dataSize; size += 1 * getEnvironmentsList().size(); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getTimeoutDuration()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, timestampAttributeName_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, owner_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, doc_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, machineType_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getFunction()); } 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.graph.v1.StreamResolver)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.StreamResolver other = (ai.chalk.protos.chalk.graph.v1.StreamResolver) obj; if (!getFqn() .equals(other.getFqn())) return false; if (!getParamsList() .equals(other.getParamsList())) return false; if (!getOutputsList() .equals(other.getOutputsList())) return false; if (hasExplicitSchema() != other.hasExplicitSchema()) return false; if (hasExplicitSchema()) { if (!getExplicitSchema() .equals(other.getExplicitSchema())) return false; } if (!getKeysList() .equals(other.getKeysList())) return false; if (hasSource() != other.hasSource()) return false; if (hasSource()) { if (!getSource() .equals(other.getSource())) return false; } if (hasParseInfo() != other.hasParseInfo()) return false; if (hasParseInfo()) { if (!getParseInfo() .equals(other.getParseInfo())) return false; } if (mode_ != other.mode_) return false; if (!getEnvironmentsList() .equals(other.getEnvironmentsList())) return false; if (hasTimeoutDuration() != other.hasTimeoutDuration()) return false; if (hasTimeoutDuration()) { if (!getTimeoutDuration() .equals(other.getTimeoutDuration())) return false; } if (hasTimestampAttributeName() != other.hasTimestampAttributeName()) return false; if (hasTimestampAttributeName()) { if (!getTimestampAttributeName() .equals(other.getTimestampAttributeName())) return false; } if (hasOwner() != other.hasOwner()) return false; if (hasOwner()) { if (!getOwner() .equals(other.getOwner())) return false; } if (hasDoc() != other.hasDoc()) return false; if (hasDoc()) { if (!getDoc() .equals(other.getDoc())) return false; } if (hasMachineType() != other.hasMachineType()) return false; if (hasMachineType()) { if (!getMachineType() .equals(other.getMachineType())) return false; } if (hasFunction() != other.hasFunction()) return false; if (hasFunction()) { if (!getFunction() .equals(other.getFunction())) 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) + FQN_FIELD_NUMBER; hash = (53 * hash) + getFqn().hashCode(); if (getParamsCount() > 0) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParamsList().hashCode(); } if (getOutputsCount() > 0) { hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; hash = (53 * hash) + getOutputsList().hashCode(); } if (hasExplicitSchema()) { hash = (37 * hash) + EXPLICIT_SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getExplicitSchema().hashCode(); } if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } if (hasParseInfo()) { hash = (37 * hash) + PARSE_INFO_FIELD_NUMBER; hash = (53 * hash) + getParseInfo().hashCode(); } hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; if (getEnvironmentsCount() > 0) { hash = (37 * hash) + ENVIRONMENTS_FIELD_NUMBER; hash = (53 * hash) + getEnvironmentsList().hashCode(); } if (hasTimeoutDuration()) { hash = (37 * hash) + TIMEOUT_DURATION_FIELD_NUMBER; hash = (53 * hash) + getTimeoutDuration().hashCode(); } if (hasTimestampAttributeName()) { hash = (37 * hash) + TIMESTAMP_ATTRIBUTE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTimestampAttributeName().hashCode(); } if (hasOwner()) { hash = (37 * hash) + OWNER_FIELD_NUMBER; hash = (53 * hash) + getOwner().hashCode(); } if (hasDoc()) { hash = (37 * hash) + DOC_FIELD_NUMBER; hash = (53 * hash) + getDoc().hashCode(); } if (hasMachineType()) { hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getMachineType().hashCode(); } if (hasFunction()) { hash = (37 * hash) + FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getFunction().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.StreamResolver parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamResolver 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.graph.v1.StreamResolver parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamResolver 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.graph.v1.StreamResolver parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamResolver parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.StreamResolver parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamResolver 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.graph.v1.StreamResolver parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamResolver 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.graph.v1.StreamResolver parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamResolver 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.graph.v1.StreamResolver 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.graph.v1.StreamResolver} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.StreamResolver) ai.chalk.protos.chalk.graph.v1.StreamResolverOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolver_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolver_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StreamResolver.class, ai.chalk.protos.chalk.graph.v1.StreamResolver.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.StreamResolver.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamsFieldBuilder(); getOutputsFieldBuilder(); getExplicitSchemaFieldBuilder(); getKeysFieldBuilder(); getSourceFieldBuilder(); getParseInfoFieldBuilder(); getTimeoutDurationFieldBuilder(); getFunctionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; fqn_ = ""; if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); } else { params_ = null; paramsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (outputsBuilder_ == null) { outputs_ = java.util.Collections.emptyList(); } else { outputs_ = null; outputsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); explicitSchema_ = null; if (explicitSchemaBuilder_ != null) { explicitSchemaBuilder_.dispose(); explicitSchemaBuilder_ = null; } if (keysBuilder_ == null) { keys_ = java.util.Collections.emptyList(); } else { keys_ = null; keysBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); source_ = null; if (sourceBuilder_ != null) { sourceBuilder_.dispose(); sourceBuilder_ = null; } parseInfo_ = null; if (parseInfoBuilder_ != null) { parseInfoBuilder_.dispose(); parseInfoBuilder_ = null; } mode_ = 0; environments_ = com.google.protobuf.LazyStringArrayList.emptyList(); timeoutDuration_ = null; if (timeoutDurationBuilder_ != null) { timeoutDurationBuilder_.dispose(); timeoutDurationBuilder_ = null; } timestampAttributeName_ = ""; owner_ = ""; doc_ = ""; machineType_ = ""; function_ = null; if (functionBuilder_ != null) { functionBuilder_.dispose(); functionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolver_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolver getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.StreamResolver.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolver build() { ai.chalk.protos.chalk.graph.v1.StreamResolver result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolver buildPartial() { ai.chalk.protos.chalk.graph.v1.StreamResolver result = new ai.chalk.protos.chalk.graph.v1.StreamResolver(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.graph.v1.StreamResolver result) { if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { params_ = java.util.Collections.unmodifiableList(params_); bitField0_ = (bitField0_ & ~0x00000002); } result.params_ = params_; } else { result.params_ = paramsBuilder_.build(); } if (outputsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { outputs_ = java.util.Collections.unmodifiableList(outputs_); bitField0_ = (bitField0_ & ~0x00000004); } result.outputs_ = outputs_; } else { result.outputs_ = outputsBuilder_.build(); } if (keysBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { keys_ = java.util.Collections.unmodifiableList(keys_); bitField0_ = (bitField0_ & ~0x00000010); } result.keys_ = keys_; } else { result.keys_ = keysBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.StreamResolver result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.fqn_ = fqn_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.explicitSchema_ = explicitSchemaBuilder_ == null ? explicitSchema_ : explicitSchemaBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { result.parseInfo_ = parseInfoBuilder_ == null ? parseInfo_ : parseInfoBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { result.mode_ = mode_; } if (((from_bitField0_ & 0x00000100) != 0)) { environments_.makeImmutable(); result.environments_ = environments_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.timeoutDuration_ = timeoutDurationBuilder_ == null ? timeoutDuration_ : timeoutDurationBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000400) != 0)) { result.timestampAttributeName_ = timestampAttributeName_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000800) != 0)) { result.owner_ = owner_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00001000) != 0)) { result.doc_ = doc_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00002000) != 0)) { result.machineType_ = machineType_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00004000) != 0)) { result.function_ = functionBuilder_ == null ? function_ : functionBuilder_.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.graph.v1.StreamResolver) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.StreamResolver)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.StreamResolver other) { if (other == ai.chalk.protos.chalk.graph.v1.StreamResolver.getDefaultInstance()) return this; if (!other.getFqn().isEmpty()) { fqn_ = other.fqn_; bitField0_ |= 0x00000001; onChanged(); } if (paramsBuilder_ == null) { if (!other.params_.isEmpty()) { if (params_.isEmpty()) { params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureParamsIsMutable(); params_.addAll(other.params_); } onChanged(); } } else { if (!other.params_.isEmpty()) { if (paramsBuilder_.isEmpty()) { paramsBuilder_.dispose(); paramsBuilder_ = null; params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000002); paramsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParamsFieldBuilder() : null; } else { paramsBuilder_.addAllMessages(other.params_); } } } if (outputsBuilder_ == null) { if (!other.outputs_.isEmpty()) { if (outputs_.isEmpty()) { outputs_ = other.outputs_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureOutputsIsMutable(); outputs_.addAll(other.outputs_); } onChanged(); } } else { if (!other.outputs_.isEmpty()) { if (outputsBuilder_.isEmpty()) { outputsBuilder_.dispose(); outputsBuilder_ = null; outputs_ = other.outputs_; bitField0_ = (bitField0_ & ~0x00000004); outputsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOutputsFieldBuilder() : null; } else { outputsBuilder_.addAllMessages(other.outputs_); } } } if (other.hasExplicitSchema()) { mergeExplicitSchema(other.getExplicitSchema()); } if (keysBuilder_ == null) { if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } } else { if (!other.keys_.isEmpty()) { if (keysBuilder_.isEmpty()) { keysBuilder_.dispose(); keysBuilder_ = null; keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000010); keysBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKeysFieldBuilder() : null; } else { keysBuilder_.addAllMessages(other.keys_); } } } if (other.hasSource()) { mergeSource(other.getSource()); } if (other.hasParseInfo()) { mergeParseInfo(other.getParseInfo()); } if (other.mode_ != 0) { setModeValue(other.getModeValue()); } if (!other.environments_.isEmpty()) { if (environments_.isEmpty()) { environments_ = other.environments_; bitField0_ |= 0x00000100; } else { ensureEnvironmentsIsMutable(); environments_.addAll(other.environments_); } onChanged(); } if (other.hasTimeoutDuration()) { mergeTimeoutDuration(other.getTimeoutDuration()); } if (other.hasTimestampAttributeName()) { timestampAttributeName_ = other.timestampAttributeName_; bitField0_ |= 0x00000400; onChanged(); } if (other.hasOwner()) { owner_ = other.owner_; bitField0_ |= 0x00000800; onChanged(); } if (other.hasDoc()) { doc_ = other.doc_; bitField0_ |= 0x00001000; onChanged(); } if (other.hasMachineType()) { machineType_ = other.machineType_; bitField0_ |= 0x00002000; onChanged(); } if (other.hasFunction()) { mergeFunction(other.getFunction()); } 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: { fqn_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ai.chalk.protos.chalk.graph.v1.StreamResolverParam m = input.readMessage( ai.chalk.protos.chalk.graph.v1.StreamResolverParam.parser(), extensionRegistry); if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(m); } else { paramsBuilder_.addMessage(m); } break; } // case 18 case 26: { ai.chalk.protos.chalk.graph.v1.ResolverOutput m = input.readMessage( ai.chalk.protos.chalk.graph.v1.ResolverOutput.parser(), extensionRegistry); if (outputsBuilder_ == null) { ensureOutputsIsMutable(); outputs_.add(m); } else { outputsBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getExplicitSchemaFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { ai.chalk.protos.chalk.graph.v1.StreamKey m = input.readMessage( ai.chalk.protos.chalk.graph.v1.StreamKey.parser(), extensionRegistry); if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(m); } else { keysBuilder_.addMessage(m); } break; } // case 42 case 50: { input.readMessage( getSourceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getParseInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 64: { mode_ = input.readEnum(); bitField0_ |= 0x00000080; break; } // case 64 case 74: { java.lang.String s = input.readStringRequireUtf8(); ensureEnvironmentsIsMutable(); environments_.add(s); break; } // case 74 case 82: { input.readMessage( getTimeoutDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 82 case 90: { timestampAttributeName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 case 98: { owner_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; break; } // case 98 case 106: { doc_ = input.readStringRequireUtf8(); bitField0_ |= 0x00001000; break; } // case 106 case 114: { machineType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00002000; break; } // case 114 case 122: { input.readMessage( getFunctionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 122 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 fqn_ = ""; /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return The fqn. */ public java.lang.String getFqn() { java.lang.Object ref = fqn_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fqn_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return The bytes for fqn. */ public com.google.protobuf.ByteString getFqnBytes() { java.lang.Object ref = fqn_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fqn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @param value The fqn to set. * @return This builder for chaining. */ public Builder setFqn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fqn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return This builder for chaining. */ public Builder clearFqn() { fqn_ = getDefaultInstance().getFqn(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @param value The bytes for fqn to set. * @return This builder for chaining. */ public Builder setFqnBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fqn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List<ai.chalk.protos.chalk.graph.v1.StreamResolverParam> params_ = java.util.Collections.emptyList(); private void ensureParamsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { params_ = new java.util.ArrayList<ai.chalk.protos.chalk.graph.v1.StreamResolverParam>(params_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamResolverParam, ai.chalk.protos.chalk.graph.v1.StreamResolverParam.Builder, ai.chalk.protos.chalk.graph.v1.StreamResolverParamOrBuilder> paramsBuilder_; /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public java.util.List<ai.chalk.protos.chalk.graph.v1.StreamResolverParam> getParamsList() { if (paramsBuilder_ == null) { return java.util.Collections.unmodifiableList(params_); } else { return paramsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public int getParamsCount() { if (paramsBuilder_ == null) { return params_.size(); } else { return paramsBuilder_.getCount(); } } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public ai.chalk.protos.chalk.graph.v1.StreamResolverParam getParams(int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public Builder setParams( int index, ai.chalk.protos.chalk.graph.v1.StreamResolverParam value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.set(index, value); onChanged(); } else { paramsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public Builder setParams( int index, ai.chalk.protos.chalk.graph.v1.StreamResolverParam.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.set(index, builderForValue.build()); onChanged(); } else { paramsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public Builder addParams(ai.chalk.protos.chalk.graph.v1.StreamResolverParam value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.add(value); onChanged(); } else { paramsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public Builder addParams( int index, ai.chalk.protos.chalk.graph.v1.StreamResolverParam value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.add(index, value); onChanged(); } else { paramsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public Builder addParams( ai.chalk.protos.chalk.graph.v1.StreamResolverParam.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(builderForValue.build()); onChanged(); } else { paramsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public Builder addParams( int index, ai.chalk.protos.chalk.graph.v1.StreamResolverParam.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(index, builderForValue.build()); onChanged(); } else { paramsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public Builder addAllParams( java.lang.Iterable<? extends ai.chalk.protos.chalk.graph.v1.StreamResolverParam> values) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, params_); onChanged(); } else { paramsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public Builder clearParams() { if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { paramsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public Builder removeParams(int index) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.remove(index); onChanged(); } else { paramsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public ai.chalk.protos.chalk.graph.v1.StreamResolverParam.Builder getParamsBuilder( int index) { return getParamsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public ai.chalk.protos.chalk.graph.v1.StreamResolverParamOrBuilder getParamsOrBuilder( int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.graph.v1.StreamResolverParamOrBuilder> getParamsOrBuilderList() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(params_); } } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public ai.chalk.protos.chalk.graph.v1.StreamResolverParam.Builder addParamsBuilder() { return getParamsFieldBuilder().addBuilder( ai.chalk.protos.chalk.graph.v1.StreamResolverParam.getDefaultInstance()); } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public ai.chalk.protos.chalk.graph.v1.StreamResolverParam.Builder addParamsBuilder( int index) { return getParamsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.graph.v1.StreamResolverParam.getDefaultInstance()); } /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ public java.util.List<ai.chalk.protos.chalk.graph.v1.StreamResolverParam.Builder> getParamsBuilderList() { return getParamsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamResolverParam, ai.chalk.protos.chalk.graph.v1.StreamResolverParam.Builder, ai.chalk.protos.chalk.graph.v1.StreamResolverParamOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamResolverParam, ai.chalk.protos.chalk.graph.v1.StreamResolverParam.Builder, ai.chalk.protos.chalk.graph.v1.StreamResolverParamOrBuilder>( params_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private java.util.List<ai.chalk.protos.chalk.graph.v1.ResolverOutput> outputs_ = java.util.Collections.emptyList(); private void ensureOutputsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { outputs_ = new java.util.ArrayList<ai.chalk.protos.chalk.graph.v1.ResolverOutput>(outputs_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.ResolverOutput, ai.chalk.protos.chalk.graph.v1.ResolverOutput.Builder, ai.chalk.protos.chalk.graph.v1.ResolverOutputOrBuilder> outputsBuilder_; /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public java.util.List<ai.chalk.protos.chalk.graph.v1.ResolverOutput> getOutputsList() { if (outputsBuilder_ == null) { return java.util.Collections.unmodifiableList(outputs_); } else { return outputsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public int getOutputsCount() { if (outputsBuilder_ == null) { return outputs_.size(); } else { return outputsBuilder_.getCount(); } } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public ai.chalk.protos.chalk.graph.v1.ResolverOutput getOutputs(int index) { if (outputsBuilder_ == null) { return outputs_.get(index); } else { return outputsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public Builder setOutputs( int index, ai.chalk.protos.chalk.graph.v1.ResolverOutput value) { if (outputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputsIsMutable(); outputs_.set(index, value); onChanged(); } else { outputsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public Builder setOutputs( int index, ai.chalk.protos.chalk.graph.v1.ResolverOutput.Builder builderForValue) { if (outputsBuilder_ == null) { ensureOutputsIsMutable(); outputs_.set(index, builderForValue.build()); onChanged(); } else { outputsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public Builder addOutputs(ai.chalk.protos.chalk.graph.v1.ResolverOutput value) { if (outputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputsIsMutable(); outputs_.add(value); onChanged(); } else { outputsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public Builder addOutputs( int index, ai.chalk.protos.chalk.graph.v1.ResolverOutput value) { if (outputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutputsIsMutable(); outputs_.add(index, value); onChanged(); } else { outputsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public Builder addOutputs( ai.chalk.protos.chalk.graph.v1.ResolverOutput.Builder builderForValue) { if (outputsBuilder_ == null) { ensureOutputsIsMutable(); outputs_.add(builderForValue.build()); onChanged(); } else { outputsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public Builder addOutputs( int index, ai.chalk.protos.chalk.graph.v1.ResolverOutput.Builder builderForValue) { if (outputsBuilder_ == null) { ensureOutputsIsMutable(); outputs_.add(index, builderForValue.build()); onChanged(); } else { outputsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public Builder addAllOutputs( java.lang.Iterable<? extends ai.chalk.protos.chalk.graph.v1.ResolverOutput> values) { if (outputsBuilder_ == null) { ensureOutputsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, outputs_); onChanged(); } else { outputsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public Builder clearOutputs() { if (outputsBuilder_ == null) { outputs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { outputsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public Builder removeOutputs(int index) { if (outputsBuilder_ == null) { ensureOutputsIsMutable(); outputs_.remove(index); onChanged(); } else { outputsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public ai.chalk.protos.chalk.graph.v1.ResolverOutput.Builder getOutputsBuilder( int index) { return getOutputsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public ai.chalk.protos.chalk.graph.v1.ResolverOutputOrBuilder getOutputsOrBuilder( int index) { if (outputsBuilder_ == null) { return outputs_.get(index); } else { return outputsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.graph.v1.ResolverOutputOrBuilder> getOutputsOrBuilderList() { if (outputsBuilder_ != null) { return outputsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(outputs_); } } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public ai.chalk.protos.chalk.graph.v1.ResolverOutput.Builder addOutputsBuilder() { return getOutputsFieldBuilder().addBuilder( ai.chalk.protos.chalk.graph.v1.ResolverOutput.getDefaultInstance()); } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public ai.chalk.protos.chalk.graph.v1.ResolverOutput.Builder addOutputsBuilder( int index) { return getOutputsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.graph.v1.ResolverOutput.getDefaultInstance()); } /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ public java.util.List<ai.chalk.protos.chalk.graph.v1.ResolverOutput.Builder> getOutputsBuilderList() { return getOutputsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.ResolverOutput, ai.chalk.protos.chalk.graph.v1.ResolverOutput.Builder, ai.chalk.protos.chalk.graph.v1.ResolverOutputOrBuilder> getOutputsFieldBuilder() { if (outputsBuilder_ == null) { outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.ResolverOutput, ai.chalk.protos.chalk.graph.v1.ResolverOutput.Builder, ai.chalk.protos.chalk.graph.v1.ResolverOutputOrBuilder>( outputs_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); outputs_ = null; } return outputsBuilder_; } private ai.chalk.protos.chalk.arrow.v1.ArrowType explicitSchema_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> explicitSchemaBuilder_; /** * <code>.chalk.arrow.v1.ArrowType explicit_schema = 4 [json_name = "explicitSchema"];</code> * @return Whether the explicitSchema field is set. */ public boolean hasExplicitSchema() { return ((bitField0_ & 0x00000008) != 0); } /** * <code>.chalk.arrow.v1.ArrowType explicit_schema = 4 [json_name = "explicitSchema"];</code> * @return The explicitSchema. */ public ai.chalk.protos.chalk.arrow.v1.ArrowType getExplicitSchema() { if (explicitSchemaBuilder_ == null) { return explicitSchema_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : explicitSchema_; } else { return explicitSchemaBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.ArrowType explicit_schema = 4 [json_name = "explicitSchema"];</code> */ public Builder setExplicitSchema(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (explicitSchemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } explicitSchema_ = value; } else { explicitSchemaBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType explicit_schema = 4 [json_name = "explicitSchema"];</code> */ public Builder setExplicitSchema( ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder builderForValue) { if (explicitSchemaBuilder_ == null) { explicitSchema_ = builderForValue.build(); } else { explicitSchemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType explicit_schema = 4 [json_name = "explicitSchema"];</code> */ public Builder mergeExplicitSchema(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (explicitSchemaBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && explicitSchema_ != null && explicitSchema_ != ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance()) { getExplicitSchemaBuilder().mergeFrom(value); } else { explicitSchema_ = value; } } else { explicitSchemaBuilder_.mergeFrom(value); } if (explicitSchema_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.ArrowType explicit_schema = 4 [json_name = "explicitSchema"];</code> */ public Builder clearExplicitSchema() { bitField0_ = (bitField0_ & ~0x00000008); explicitSchema_ = null; if (explicitSchemaBuilder_ != null) { explicitSchemaBuilder_.dispose(); explicitSchemaBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType explicit_schema = 4 [json_name = "explicitSchema"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder getExplicitSchemaBuilder() { bitField0_ |= 0x00000008; onChanged(); return getExplicitSchemaFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ArrowType explicit_schema = 4 [json_name = "explicitSchema"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getExplicitSchemaOrBuilder() { if (explicitSchemaBuilder_ != null) { return explicitSchemaBuilder_.getMessageOrBuilder(); } else { return explicitSchema_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : explicitSchema_; } } /** * <code>.chalk.arrow.v1.ArrowType explicit_schema = 4 [json_name = "explicitSchema"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> getExplicitSchemaFieldBuilder() { if (explicitSchemaBuilder_ == null) { explicitSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder>( getExplicitSchema(), getParentForChildren(), isClean()); explicitSchema_ = null; } return explicitSchemaBuilder_; } private java.util.List<ai.chalk.protos.chalk.graph.v1.StreamKey> keys_ = java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { keys_ = new java.util.ArrayList<ai.chalk.protos.chalk.graph.v1.StreamKey>(keys_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamKey, ai.chalk.protos.chalk.graph.v1.StreamKey.Builder, ai.chalk.protos.chalk.graph.v1.StreamKeyOrBuilder> keysBuilder_; /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public java.util.List<ai.chalk.protos.chalk.graph.v1.StreamKey> getKeysList() { if (keysBuilder_ == null) { return java.util.Collections.unmodifiableList(keys_); } else { return keysBuilder_.getMessageList(); } } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public int getKeysCount() { if (keysBuilder_ == null) { return keys_.size(); } else { return keysBuilder_.getCount(); } } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public ai.chalk.protos.chalk.graph.v1.StreamKey getKeys(int index) { if (keysBuilder_ == null) { return keys_.get(index); } else { return keysBuilder_.getMessage(index); } } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public Builder setKeys( int index, ai.chalk.protos.chalk.graph.v1.StreamKey value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.set(index, value); onChanged(); } else { keysBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public Builder setKeys( int index, ai.chalk.protos.chalk.graph.v1.StreamKey.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.set(index, builderForValue.build()); onChanged(); } else { keysBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public Builder addKeys(ai.chalk.protos.chalk.graph.v1.StreamKey value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(value); onChanged(); } else { keysBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public Builder addKeys( int index, ai.chalk.protos.chalk.graph.v1.StreamKey value) { if (keysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(index, value); onChanged(); } else { keysBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public Builder addKeys( ai.chalk.protos.chalk.graph.v1.StreamKey.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(builderForValue.build()); onChanged(); } else { keysBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public Builder addKeys( int index, ai.chalk.protos.chalk.graph.v1.StreamKey.Builder builderForValue) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.add(index, builderForValue.build()); onChanged(); } else { keysBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public Builder addAllKeys( java.lang.Iterable<? extends ai.chalk.protos.chalk.graph.v1.StreamKey> values) { if (keysBuilder_ == null) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); onChanged(); } else { keysBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public Builder clearKeys() { if (keysBuilder_ == null) { keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { keysBuilder_.clear(); } return this; } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public Builder removeKeys(int index) { if (keysBuilder_ == null) { ensureKeysIsMutable(); keys_.remove(index); onChanged(); } else { keysBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public ai.chalk.protos.chalk.graph.v1.StreamKey.Builder getKeysBuilder( int index) { return getKeysFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public ai.chalk.protos.chalk.graph.v1.StreamKeyOrBuilder getKeysOrBuilder( int index) { if (keysBuilder_ == null) { return keys_.get(index); } else { return keysBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.graph.v1.StreamKeyOrBuilder> getKeysOrBuilderList() { if (keysBuilder_ != null) { return keysBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(keys_); } } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public ai.chalk.protos.chalk.graph.v1.StreamKey.Builder addKeysBuilder() { return getKeysFieldBuilder().addBuilder( ai.chalk.protos.chalk.graph.v1.StreamKey.getDefaultInstance()); } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public ai.chalk.protos.chalk.graph.v1.StreamKey.Builder addKeysBuilder( int index) { return getKeysFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.graph.v1.StreamKey.getDefaultInstance()); } /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ public java.util.List<ai.chalk.protos.chalk.graph.v1.StreamKey.Builder> getKeysBuilderList() { return getKeysFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamKey, ai.chalk.protos.chalk.graph.v1.StreamKey.Builder, ai.chalk.protos.chalk.graph.v1.StreamKeyOrBuilder> getKeysFieldBuilder() { if (keysBuilder_ == null) { keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamKey, ai.chalk.protos.chalk.graph.v1.StreamKey.Builder, ai.chalk.protos.chalk.graph.v1.StreamKeyOrBuilder>( keys_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); keys_ = null; } return keysBuilder_; } private ai.chalk.protos.chalk.graph.v1.StreamSourceReference source_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamSourceReference, ai.chalk.protos.chalk.graph.v1.StreamSourceReference.Builder, ai.chalk.protos.chalk.graph.v1.StreamSourceReferenceOrBuilder> sourceBuilder_; /** * <code>.chalk.graph.v1.StreamSourceReference source = 6 [json_name = "source"];</code> * @return Whether the source field is set. */ public boolean hasSource() { return ((bitField0_ & 0x00000020) != 0); } /** * <code>.chalk.graph.v1.StreamSourceReference source = 6 [json_name = "source"];</code> * @return The source. */ public ai.chalk.protos.chalk.graph.v1.StreamSourceReference getSource() { if (sourceBuilder_ == null) { return source_ == null ? ai.chalk.protos.chalk.graph.v1.StreamSourceReference.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * <code>.chalk.graph.v1.StreamSourceReference source = 6 [json_name = "source"];</code> */ public Builder setSource(ai.chalk.protos.chalk.graph.v1.StreamSourceReference value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; } else { sourceBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>.chalk.graph.v1.StreamSourceReference source = 6 [json_name = "source"];</code> */ public Builder setSource( ai.chalk.protos.chalk.graph.v1.StreamSourceReference.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); } else { sourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>.chalk.graph.v1.StreamSourceReference source = 6 [json_name = "source"];</code> */ public Builder mergeSource(ai.chalk.protos.chalk.graph.v1.StreamSourceReference value) { if (sourceBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && source_ != null && source_ != ai.chalk.protos.chalk.graph.v1.StreamSourceReference.getDefaultInstance()) { getSourceBuilder().mergeFrom(value); } else { source_ = value; } } else { sourceBuilder_.mergeFrom(value); } if (source_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * <code>.chalk.graph.v1.StreamSourceReference source = 6 [json_name = "source"];</code> */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000020); source_ = null; if (sourceBuilder_ != null) { sourceBuilder_.dispose(); sourceBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.graph.v1.StreamSourceReference source = 6 [json_name = "source"];</code> */ public ai.chalk.protos.chalk.graph.v1.StreamSourceReference.Builder getSourceBuilder() { bitField0_ |= 0x00000020; onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.StreamSourceReference source = 6 [json_name = "source"];</code> */ public ai.chalk.protos.chalk.graph.v1.StreamSourceReferenceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? ai.chalk.protos.chalk.graph.v1.StreamSourceReference.getDefaultInstance() : source_; } } /** * <code>.chalk.graph.v1.StreamSourceReference source = 6 [json_name = "source"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamSourceReference, ai.chalk.protos.chalk.graph.v1.StreamSourceReference.Builder, ai.chalk.protos.chalk.graph.v1.StreamSourceReferenceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamSourceReference, ai.chalk.protos.chalk.graph.v1.StreamSourceReference.Builder, ai.chalk.protos.chalk.graph.v1.StreamSourceReferenceOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } private ai.chalk.protos.chalk.graph.v1.ParseInfo parseInfo_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.ParseInfo, ai.chalk.protos.chalk.graph.v1.ParseInfo.Builder, ai.chalk.protos.chalk.graph.v1.ParseInfoOrBuilder> parseInfoBuilder_; /** * <code>.chalk.graph.v1.ParseInfo parse_info = 7 [json_name = "parseInfo"];</code> * @return Whether the parseInfo field is set. */ public boolean hasParseInfo() { return ((bitField0_ & 0x00000040) != 0); } /** * <code>.chalk.graph.v1.ParseInfo parse_info = 7 [json_name = "parseInfo"];</code> * @return The parseInfo. */ public ai.chalk.protos.chalk.graph.v1.ParseInfo getParseInfo() { if (parseInfoBuilder_ == null) { return parseInfo_ == null ? ai.chalk.protos.chalk.graph.v1.ParseInfo.getDefaultInstance() : parseInfo_; } else { return parseInfoBuilder_.getMessage(); } } /** * <code>.chalk.graph.v1.ParseInfo parse_info = 7 [json_name = "parseInfo"];</code> */ public Builder setParseInfo(ai.chalk.protos.chalk.graph.v1.ParseInfo value) { if (parseInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } parseInfo_ = value; } else { parseInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * <code>.chalk.graph.v1.ParseInfo parse_info = 7 [json_name = "parseInfo"];</code> */ public Builder setParseInfo( ai.chalk.protos.chalk.graph.v1.ParseInfo.Builder builderForValue) { if (parseInfoBuilder_ == null) { parseInfo_ = builderForValue.build(); } else { parseInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * <code>.chalk.graph.v1.ParseInfo parse_info = 7 [json_name = "parseInfo"];</code> */ public Builder mergeParseInfo(ai.chalk.protos.chalk.graph.v1.ParseInfo value) { if (parseInfoBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && parseInfo_ != null && parseInfo_ != ai.chalk.protos.chalk.graph.v1.ParseInfo.getDefaultInstance()) { getParseInfoBuilder().mergeFrom(value); } else { parseInfo_ = value; } } else { parseInfoBuilder_.mergeFrom(value); } if (parseInfo_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** * <code>.chalk.graph.v1.ParseInfo parse_info = 7 [json_name = "parseInfo"];</code> */ public Builder clearParseInfo() { bitField0_ = (bitField0_ & ~0x00000040); parseInfo_ = null; if (parseInfoBuilder_ != null) { parseInfoBuilder_.dispose(); parseInfoBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.graph.v1.ParseInfo parse_info = 7 [json_name = "parseInfo"];</code> */ public ai.chalk.protos.chalk.graph.v1.ParseInfo.Builder getParseInfoBuilder() { bitField0_ |= 0x00000040; onChanged(); return getParseInfoFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.ParseInfo parse_info = 7 [json_name = "parseInfo"];</code> */ public ai.chalk.protos.chalk.graph.v1.ParseInfoOrBuilder getParseInfoOrBuilder() { if (parseInfoBuilder_ != null) { return parseInfoBuilder_.getMessageOrBuilder(); } else { return parseInfo_ == null ? ai.chalk.protos.chalk.graph.v1.ParseInfo.getDefaultInstance() : parseInfo_; } } /** * <code>.chalk.graph.v1.ParseInfo parse_info = 7 [json_name = "parseInfo"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.ParseInfo, ai.chalk.protos.chalk.graph.v1.ParseInfo.Builder, ai.chalk.protos.chalk.graph.v1.ParseInfoOrBuilder> getParseInfoFieldBuilder() { if (parseInfoBuilder_ == null) { parseInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.ParseInfo, ai.chalk.protos.chalk.graph.v1.ParseInfo.Builder, ai.chalk.protos.chalk.graph.v1.ParseInfoOrBuilder>( getParseInfo(), getParentForChildren(), isClean()); parseInfo_ = null; } return parseInfoBuilder_; } private int mode_ = 0; /** * <code>.chalk.graph.v1.WindowMode mode = 8 [json_name = "mode"];</code> * @return The enum numeric value on the wire for mode. */ @java.lang.Override public int getModeValue() { return mode_; } /** * <code>.chalk.graph.v1.WindowMode mode = 8 [json_name = "mode"];</code> * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ public Builder setModeValue(int value) { mode_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * <code>.chalk.graph.v1.WindowMode mode = 8 [json_name = "mode"];</code> * @return The mode. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowMode getMode() { ai.chalk.protos.chalk.graph.v1.WindowMode result = ai.chalk.protos.chalk.graph.v1.WindowMode.forNumber(mode_); return result == null ? ai.chalk.protos.chalk.graph.v1.WindowMode.UNRECOGNIZED : result; } /** * <code>.chalk.graph.v1.WindowMode mode = 8 [json_name = "mode"];</code> * @param value The mode to set. * @return This builder for chaining. */ public Builder setMode(ai.chalk.protos.chalk.graph.v1.WindowMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; mode_ = value.getNumber(); onChanged(); return this; } /** * <code>.chalk.graph.v1.WindowMode mode = 8 [json_name = "mode"];</code> * @return This builder for chaining. */ public Builder clearMode() { bitField0_ = (bitField0_ & ~0x00000080); mode_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList environments_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureEnvironmentsIsMutable() { if (!environments_.isModifiable()) { environments_ = new com.google.protobuf.LazyStringArrayList(environments_); } bitField0_ |= 0x00000100; } /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @return A list containing the environments. */ public com.google.protobuf.ProtocolStringList getEnvironmentsList() { environments_.makeImmutable(); return environments_; } /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @return The count of environments. */ public int getEnvironmentsCount() { return environments_.size(); } /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @param index The index of the element to return. * @return The environments at the given index. */ public java.lang.String getEnvironments(int index) { return environments_.get(index); } /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @param index The index of the value to return. * @return The bytes of the environments at the given index. */ public com.google.protobuf.ByteString getEnvironmentsBytes(int index) { return environments_.getByteString(index); } /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @param index The index to set the value at. * @param value The environments to set. * @return This builder for chaining. */ public Builder setEnvironments( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEnvironmentsIsMutable(); environments_.set(index, value); bitField0_ |= 0x00000100; onChanged(); return this; } /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @param value The environments to add. * @return This builder for chaining. */ public Builder addEnvironments( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEnvironmentsIsMutable(); environments_.add(value); bitField0_ |= 0x00000100; onChanged(); return this; } /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @param values The environments to add. * @return This builder for chaining. */ public Builder addAllEnvironments( java.lang.Iterable<java.lang.String> values) { ensureEnvironmentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, environments_); bitField0_ |= 0x00000100; onChanged(); return this; } /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @return This builder for chaining. */ public Builder clearEnvironments() { environments_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @param value The bytes of the environments to add. * @return This builder for chaining. */ public Builder addEnvironmentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEnvironmentsIsMutable(); environments_.add(value); bitField0_ |= 0x00000100; onChanged(); return this; } private com.google.protobuf.Duration timeoutDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutDurationBuilder_; /** * <code>.google.protobuf.Duration timeout_duration = 10 [json_name = "timeoutDuration"];</code> * @return Whether the timeoutDuration field is set. */ public boolean hasTimeoutDuration() { return ((bitField0_ & 0x00000200) != 0); } /** * <code>.google.protobuf.Duration timeout_duration = 10 [json_name = "timeoutDuration"];</code> * @return The timeoutDuration. */ public com.google.protobuf.Duration getTimeoutDuration() { if (timeoutDurationBuilder_ == null) { return timeoutDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeoutDuration_; } else { return timeoutDurationBuilder_.getMessage(); } } /** * <code>.google.protobuf.Duration timeout_duration = 10 [json_name = "timeoutDuration"];</code> */ public Builder setTimeoutDuration(com.google.protobuf.Duration value) { if (timeoutDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timeoutDuration_ = value; } else { timeoutDurationBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * <code>.google.protobuf.Duration timeout_duration = 10 [json_name = "timeoutDuration"];</code> */ public Builder setTimeoutDuration( com.google.protobuf.Duration.Builder builderForValue) { if (timeoutDurationBuilder_ == null) { timeoutDuration_ = builderForValue.build(); } else { timeoutDurationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * <code>.google.protobuf.Duration timeout_duration = 10 [json_name = "timeoutDuration"];</code> */ public Builder mergeTimeoutDuration(com.google.protobuf.Duration value) { if (timeoutDurationBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && timeoutDuration_ != null && timeoutDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getTimeoutDurationBuilder().mergeFrom(value); } else { timeoutDuration_ = value; } } else { timeoutDurationBuilder_.mergeFrom(value); } if (timeoutDuration_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** * <code>.google.protobuf.Duration timeout_duration = 10 [json_name = "timeoutDuration"];</code> */ public Builder clearTimeoutDuration() { bitField0_ = (bitField0_ & ~0x00000200); timeoutDuration_ = null; if (timeoutDurationBuilder_ != null) { timeoutDurationBuilder_.dispose(); timeoutDurationBuilder_ = null; } onChanged(); return this; } /** * <code>.google.protobuf.Duration timeout_duration = 10 [json_name = "timeoutDuration"];</code> */ public com.google.protobuf.Duration.Builder getTimeoutDurationBuilder() { bitField0_ |= 0x00000200; onChanged(); return getTimeoutDurationFieldBuilder().getBuilder(); } /** * <code>.google.protobuf.Duration timeout_duration = 10 [json_name = "timeoutDuration"];</code> */ public com.google.protobuf.DurationOrBuilder getTimeoutDurationOrBuilder() { if (timeoutDurationBuilder_ != null) { return timeoutDurationBuilder_.getMessageOrBuilder(); } else { return timeoutDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeoutDuration_; } } /** * <code>.google.protobuf.Duration timeout_duration = 10 [json_name = "timeoutDuration"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTimeoutDurationFieldBuilder() { if (timeoutDurationBuilder_ == null) { timeoutDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getTimeoutDuration(), getParentForChildren(), isClean()); timeoutDuration_ = null; } return timeoutDurationBuilder_; } private java.lang.Object timestampAttributeName_ = ""; /** * <code>optional string timestamp_attribute_name = 11 [json_name = "timestampAttributeName"];</code> * @return Whether the timestampAttributeName field is set. */ public boolean hasTimestampAttributeName() { return ((bitField0_ & 0x00000400) != 0); } /** * <code>optional string timestamp_attribute_name = 11 [json_name = "timestampAttributeName"];</code> * @return The timestampAttributeName. */ public java.lang.String getTimestampAttributeName() { java.lang.Object ref = timestampAttributeName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timestampAttributeName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string timestamp_attribute_name = 11 [json_name = "timestampAttributeName"];</code> * @return The bytes for timestampAttributeName. */ public com.google.protobuf.ByteString getTimestampAttributeNameBytes() { java.lang.Object ref = timestampAttributeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); timestampAttributeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string timestamp_attribute_name = 11 [json_name = "timestampAttributeName"];</code> * @param value The timestampAttributeName to set. * @return This builder for chaining. */ public Builder setTimestampAttributeName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } timestampAttributeName_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * <code>optional string timestamp_attribute_name = 11 [json_name = "timestampAttributeName"];</code> * @return This builder for chaining. */ public Builder clearTimestampAttributeName() { timestampAttributeName_ = getDefaultInstance().getTimestampAttributeName(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * <code>optional string timestamp_attribute_name = 11 [json_name = "timestampAttributeName"];</code> * @param value The bytes for timestampAttributeName to set. * @return This builder for chaining. */ public Builder setTimestampAttributeNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); timestampAttributeName_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private java.lang.Object owner_ = ""; /** * <code>optional string owner = 12 [json_name = "owner"];</code> * @return Whether the owner field is set. */ public boolean hasOwner() { return ((bitField0_ & 0x00000800) != 0); } /** * <code>optional string owner = 12 [json_name = "owner"];</code> * @return The owner. */ public java.lang.String getOwner() { java.lang.Object ref = owner_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); owner_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string owner = 12 [json_name = "owner"];</code> * @return The bytes for owner. */ public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string owner = 12 [json_name = "owner"];</code> * @param value The owner to set. * @return This builder for chaining. */ public Builder setOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } owner_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * <code>optional string owner = 12 [json_name = "owner"];</code> * @return This builder for chaining. */ public Builder clearOwner() { owner_ = getDefaultInstance().getOwner(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * <code>optional string owner = 12 [json_name = "owner"];</code> * @param value The bytes for owner to set. * @return This builder for chaining. */ public Builder setOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); owner_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } private java.lang.Object doc_ = ""; /** * <code>optional string doc = 13 [json_name = "doc"];</code> * @return Whether the doc field is set. */ public boolean hasDoc() { return ((bitField0_ & 0x00001000) != 0); } /** * <code>optional string doc = 13 [json_name = "doc"];</code> * @return The doc. */ public java.lang.String getDoc() { java.lang.Object ref = doc_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); doc_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string doc = 13 [json_name = "doc"];</code> * @return The bytes for doc. */ public com.google.protobuf.ByteString getDocBytes() { java.lang.Object ref = doc_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); doc_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string doc = 13 [json_name = "doc"];</code> * @param value The doc to set. * @return This builder for chaining. */ public Builder setDoc( java.lang.String value) { if (value == null) { throw new NullPointerException(); } doc_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * <code>optional string doc = 13 [json_name = "doc"];</code> * @return This builder for chaining. */ public Builder clearDoc() { doc_ = getDefaultInstance().getDoc(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** * <code>optional string doc = 13 [json_name = "doc"];</code> * @param value The bytes for doc to set. * @return This builder for chaining. */ public Builder setDocBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); doc_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } private java.lang.Object machineType_ = ""; /** * <code>optional string machine_type = 14 [json_name = "machineType"];</code> * @return Whether the machineType field is set. */ public boolean hasMachineType() { return ((bitField0_ & 0x00002000) != 0); } /** * <code>optional string machine_type = 14 [json_name = "machineType"];</code> * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string machine_type = 14 [json_name = "machineType"];</code> * @return The bytes for machineType. */ public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); machineType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string machine_type = 14 [json_name = "machineType"];</code> * @param value The machineType to set. * @return This builder for chaining. */ public Builder setMachineType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } machineType_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** * <code>optional string machine_type = 14 [json_name = "machineType"];</code> * @return This builder for chaining. */ public Builder clearMachineType() { machineType_ = getDefaultInstance().getMachineType(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } /** * <code>optional string machine_type = 14 [json_name = "machineType"];</code> * @param value The bytes for machineType to set. * @return This builder for chaining. */ public Builder setMachineTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); machineType_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } private ai.chalk.protos.chalk.graph.v1.FunctionReference function_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FunctionReference, ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder, ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder> functionBuilder_; /** * <code>.chalk.graph.v1.FunctionReference function = 15 [json_name = "function"];</code> * @return Whether the function field is set. */ public boolean hasFunction() { return ((bitField0_ & 0x00004000) != 0); } /** * <code>.chalk.graph.v1.FunctionReference function = 15 [json_name = "function"];</code> * @return The function. */ public ai.chalk.protos.chalk.graph.v1.FunctionReference getFunction() { if (functionBuilder_ == null) { return function_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : function_; } else { return functionBuilder_.getMessage(); } } /** * <code>.chalk.graph.v1.FunctionReference function = 15 [json_name = "function"];</code> */ public Builder setFunction(ai.chalk.protos.chalk.graph.v1.FunctionReference value) { if (functionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } function_ = value; } else { functionBuilder_.setMessage(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** * <code>.chalk.graph.v1.FunctionReference function = 15 [json_name = "function"];</code> */ public Builder setFunction( ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder builderForValue) { if (functionBuilder_ == null) { function_ = builderForValue.build(); } else { functionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); return this; } /** * <code>.chalk.graph.v1.FunctionReference function = 15 [json_name = "function"];</code> */ public Builder mergeFunction(ai.chalk.protos.chalk.graph.v1.FunctionReference value) { if (functionBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0) && function_ != null && function_ != ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance()) { getFunctionBuilder().mergeFrom(value); } else { function_ = value; } } else { functionBuilder_.mergeFrom(value); } if (function_ != null) { bitField0_ |= 0x00004000; onChanged(); } return this; } /** * <code>.chalk.graph.v1.FunctionReference function = 15 [json_name = "function"];</code> */ public Builder clearFunction() { bitField0_ = (bitField0_ & ~0x00004000); function_ = null; if (functionBuilder_ != null) { functionBuilder_.dispose(); functionBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.graph.v1.FunctionReference function = 15 [json_name = "function"];</code> */ public ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder getFunctionBuilder() { bitField0_ |= 0x00004000; onChanged(); return getFunctionFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.FunctionReference function = 15 [json_name = "function"];</code> */ public ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder getFunctionOrBuilder() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilder(); } else { return function_ == null ? ai.chalk.protos.chalk.graph.v1.FunctionReference.getDefaultInstance() : function_; } } /** * <code>.chalk.graph.v1.FunctionReference function = 15 [json_name = "function"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FunctionReference, ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder, ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FunctionReference, ai.chalk.protos.chalk.graph.v1.FunctionReference.Builder, ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder>( getFunction(), getParentForChildren(), isClean()); function_ = null; } return functionBuilder_; } @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.graph.v1.StreamResolver) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.StreamResolver) private static final ai.chalk.protos.chalk.graph.v1.StreamResolver DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.StreamResolver(); } public static ai.chalk.protos.chalk.graph.v1.StreamResolver getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<StreamResolver> PARSER = new com.google.protobuf.AbstractParser<StreamResolver>() { @java.lang.Override public StreamResolver 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<StreamResolver> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<StreamResolver> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolver getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StreamResolverOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface StreamResolverOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.StreamResolver) com.google.protobuf.MessageOrBuilder { /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return The fqn. */ java.lang.String getFqn(); /** * <code>string fqn = 1 [json_name = "fqn"];</code> * @return The bytes for fqn. */ com.google.protobuf.ByteString getFqnBytes(); /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ java.util.List<ai.chalk.protos.chalk.graph.v1.StreamResolverParam> getParamsList(); /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ ai.chalk.protos.chalk.graph.v1.StreamResolverParam getParams(int index); /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ int getParamsCount(); /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.graph.v1.StreamResolverParamOrBuilder> getParamsOrBuilderList(); /** * <code>repeated .chalk.graph.v1.StreamResolverParam params = 2 [json_name = "params"];</code> */ ai.chalk.protos.chalk.graph.v1.StreamResolverParamOrBuilder getParamsOrBuilder( int index); /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ java.util.List<ai.chalk.protos.chalk.graph.v1.ResolverOutput> getOutputsList(); /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ ai.chalk.protos.chalk.graph.v1.ResolverOutput getOutputs(int index); /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ int getOutputsCount(); /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.graph.v1.ResolverOutputOrBuilder> getOutputsOrBuilderList(); /** * <code>repeated .chalk.graph.v1.ResolverOutput outputs = 3 [json_name = "outputs"];</code> */ ai.chalk.protos.chalk.graph.v1.ResolverOutputOrBuilder getOutputsOrBuilder( int index); /** * <code>.chalk.arrow.v1.ArrowType explicit_schema = 4 [json_name = "explicitSchema"];</code> * @return Whether the explicitSchema field is set. */ boolean hasExplicitSchema(); /** * <code>.chalk.arrow.v1.ArrowType explicit_schema = 4 [json_name = "explicitSchema"];</code> * @return The explicitSchema. */ ai.chalk.protos.chalk.arrow.v1.ArrowType getExplicitSchema(); /** * <code>.chalk.arrow.v1.ArrowType explicit_schema = 4 [json_name = "explicitSchema"];</code> */ ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getExplicitSchemaOrBuilder(); /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ java.util.List<ai.chalk.protos.chalk.graph.v1.StreamKey> getKeysList(); /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ ai.chalk.protos.chalk.graph.v1.StreamKey getKeys(int index); /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ int getKeysCount(); /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.graph.v1.StreamKeyOrBuilder> getKeysOrBuilderList(); /** * <code>repeated .chalk.graph.v1.StreamKey keys = 5 [json_name = "keys"];</code> */ ai.chalk.protos.chalk.graph.v1.StreamKeyOrBuilder getKeysOrBuilder( int index); /** * <code>.chalk.graph.v1.StreamSourceReference source = 6 [json_name = "source"];</code> * @return Whether the source field is set. */ boolean hasSource(); /** * <code>.chalk.graph.v1.StreamSourceReference source = 6 [json_name = "source"];</code> * @return The source. */ ai.chalk.protos.chalk.graph.v1.StreamSourceReference getSource(); /** * <code>.chalk.graph.v1.StreamSourceReference source = 6 [json_name = "source"];</code> */ ai.chalk.protos.chalk.graph.v1.StreamSourceReferenceOrBuilder getSourceOrBuilder(); /** * <code>.chalk.graph.v1.ParseInfo parse_info = 7 [json_name = "parseInfo"];</code> * @return Whether the parseInfo field is set. */ boolean hasParseInfo(); /** * <code>.chalk.graph.v1.ParseInfo parse_info = 7 [json_name = "parseInfo"];</code> * @return The parseInfo. */ ai.chalk.protos.chalk.graph.v1.ParseInfo getParseInfo(); /** * <code>.chalk.graph.v1.ParseInfo parse_info = 7 [json_name = "parseInfo"];</code> */ ai.chalk.protos.chalk.graph.v1.ParseInfoOrBuilder getParseInfoOrBuilder(); /** * <code>.chalk.graph.v1.WindowMode mode = 8 [json_name = "mode"];</code> * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** * <code>.chalk.graph.v1.WindowMode mode = 8 [json_name = "mode"];</code> * @return The mode. */ ai.chalk.protos.chalk.graph.v1.WindowMode getMode(); /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @return A list containing the environments. */ java.util.List<java.lang.String> getEnvironmentsList(); /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @return The count of environments. */ int getEnvironmentsCount(); /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @param index The index of the element to return. * @return The environments at the given index. */ java.lang.String getEnvironments(int index); /** * <code>repeated string environments = 9 [json_name = "environments"];</code> * @param index The index of the value to return. * @return The bytes of the environments at the given index. */ com.google.protobuf.ByteString getEnvironmentsBytes(int index); /** * <code>.google.protobuf.Duration timeout_duration = 10 [json_name = "timeoutDuration"];</code> * @return Whether the timeoutDuration field is set. */ boolean hasTimeoutDuration(); /** * <code>.google.protobuf.Duration timeout_duration = 10 [json_name = "timeoutDuration"];</code> * @return The timeoutDuration. */ com.google.protobuf.Duration getTimeoutDuration(); /** * <code>.google.protobuf.Duration timeout_duration = 10 [json_name = "timeoutDuration"];</code> */ com.google.protobuf.DurationOrBuilder getTimeoutDurationOrBuilder(); /** * <code>optional string timestamp_attribute_name = 11 [json_name = "timestampAttributeName"];</code> * @return Whether the timestampAttributeName field is set. */ boolean hasTimestampAttributeName(); /** * <code>optional string timestamp_attribute_name = 11 [json_name = "timestampAttributeName"];</code> * @return The timestampAttributeName. */ java.lang.String getTimestampAttributeName(); /** * <code>optional string timestamp_attribute_name = 11 [json_name = "timestampAttributeName"];</code> * @return The bytes for timestampAttributeName. */ com.google.protobuf.ByteString getTimestampAttributeNameBytes(); /** * <code>optional string owner = 12 [json_name = "owner"];</code> * @return Whether the owner field is set. */ boolean hasOwner(); /** * <code>optional string owner = 12 [json_name = "owner"];</code> * @return The owner. */ java.lang.String getOwner(); /** * <code>optional string owner = 12 [json_name = "owner"];</code> * @return The bytes for owner. */ com.google.protobuf.ByteString getOwnerBytes(); /** * <code>optional string doc = 13 [json_name = "doc"];</code> * @return Whether the doc field is set. */ boolean hasDoc(); /** * <code>optional string doc = 13 [json_name = "doc"];</code> * @return The doc. */ java.lang.String getDoc(); /** * <code>optional string doc = 13 [json_name = "doc"];</code> * @return The bytes for doc. */ com.google.protobuf.ByteString getDocBytes(); /** * <code>optional string machine_type = 14 [json_name = "machineType"];</code> * @return Whether the machineType field is set. */ boolean hasMachineType(); /** * <code>optional string machine_type = 14 [json_name = "machineType"];</code> * @return The machineType. */ java.lang.String getMachineType(); /** * <code>optional string machine_type = 14 [json_name = "machineType"];</code> * @return The bytes for machineType. */ com.google.protobuf.ByteString getMachineTypeBytes(); /** * <code>.chalk.graph.v1.FunctionReference function = 15 [json_name = "function"];</code> * @return Whether the function field is set. */ boolean hasFunction(); /** * <code>.chalk.graph.v1.FunctionReference function = 15 [json_name = "function"];</code> * @return The function. */ ai.chalk.protos.chalk.graph.v1.FunctionReference getFunction(); /** * <code>.chalk.graph.v1.FunctionReference function = 15 [json_name = "function"];</code> */ ai.chalk.protos.chalk.graph.v1.FunctionReferenceOrBuilder getFunctionOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StreamResolverParam.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.StreamResolverParam} */ public final class StreamResolverParam extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.StreamResolverParam) StreamResolverParamOrBuilder { private static final long serialVersionUID = 0L; // Use StreamResolverParam.newBuilder() to construct. private StreamResolverParam(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private StreamResolverParam() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamResolverParam(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolverParam_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolverParam_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StreamResolverParam.class, ai.chalk.protos.chalk.graph.v1.StreamResolverParam.Builder.class); } private int typeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object type_; public enum TypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MESSAGE(1), MESSAGE_WINDOW(2), STATE(3), TYPE_NOT_SET(0); private final int value; private TypeCase(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 TypeCase valueOf(int value) { return forNumber(value); } public static TypeCase forNumber(int value) { switch (value) { case 1: return MESSAGE; case 2: return MESSAGE_WINDOW; case 3: return STATE; case 0: return TYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public static final int MESSAGE_FIELD_NUMBER = 1; /** * <code>.chalk.graph.v1.StreamResolverParamMessage message = 1 [json_name = "message"];</code> * @return Whether the message field is set. */ @java.lang.Override public boolean hasMessage() { return typeCase_ == 1; } /** * <code>.chalk.graph.v1.StreamResolverParamMessage message = 1 [json_name = "message"];</code> * @return The message. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage getMessage() { if (typeCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage) type_; } return ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.getDefaultInstance(); } /** * <code>.chalk.graph.v1.StreamResolverParamMessage message = 1 [json_name = "message"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageOrBuilder getMessageOrBuilder() { if (typeCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage) type_; } return ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.getDefaultInstance(); } public static final int MESSAGE_WINDOW_FIELD_NUMBER = 2; /** * <code>.chalk.graph.v1.StreamResolverParamMessageWindow message_window = 2 [json_name = "messageWindow"];</code> * @return Whether the messageWindow field is set. */ @java.lang.Override public boolean hasMessageWindow() { return typeCase_ == 2; } /** * <code>.chalk.graph.v1.StreamResolverParamMessageWindow message_window = 2 [json_name = "messageWindow"];</code> * @return The messageWindow. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow getMessageWindow() { if (typeCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow) type_; } return ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.getDefaultInstance(); } /** * <code>.chalk.graph.v1.StreamResolverParamMessageWindow message_window = 2 [json_name = "messageWindow"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindowOrBuilder getMessageWindowOrBuilder() { if (typeCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow) type_; } return ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.getDefaultInstance(); } public static final int STATE_FIELD_NUMBER = 3; /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> * @return Whether the state field is set. */ @java.lang.Override public boolean hasState() { return typeCase_ == 3; } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> * @return The state. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverState getState() { if (typeCase_ == 3) { return (ai.chalk.protos.chalk.graph.v1.ResolverState) type_; } return ai.chalk.protos.chalk.graph.v1.ResolverState.getDefaultInstance(); } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverStateOrBuilder getStateOrBuilder() { if (typeCase_ == 3) { return (ai.chalk.protos.chalk.graph.v1.ResolverState) type_; } return ai.chalk.protos.chalk.graph.v1.ResolverState.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 (typeCase_ == 1) { output.writeMessage(1, (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage) type_); } if (typeCase_ == 2) { output.writeMessage(2, (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow) type_); } if (typeCase_ == 3) { output.writeMessage(3, (ai.chalk.protos.chalk.graph.v1.ResolverState) type_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (typeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage) type_); } if (typeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow) type_); } if (typeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (ai.chalk.protos.chalk.graph.v1.ResolverState) type_); } 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.graph.v1.StreamResolverParam)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.StreamResolverParam other = (ai.chalk.protos.chalk.graph.v1.StreamResolverParam) obj; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: if (!getMessage() .equals(other.getMessage())) return false; break; case 2: if (!getMessageWindow() .equals(other.getMessageWindow())) return false; break; case 3: if (!getState() .equals(other.getState())) 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 (typeCase_) { case 1: hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); break; case 2: hash = (37 * hash) + MESSAGE_WINDOW_FIELD_NUMBER; hash = (53 * hash) + getMessageWindow().hashCode(); break; case 3: hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParam parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParam 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.graph.v1.StreamResolverParam parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParam 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.graph.v1.StreamResolverParam parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParam parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParam parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParam 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.graph.v1.StreamResolverParam parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParam 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.graph.v1.StreamResolverParam parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParam 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.graph.v1.StreamResolverParam 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.graph.v1.StreamResolverParam} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.StreamResolverParam) ai.chalk.protos.chalk.graph.v1.StreamResolverParamOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolverParam_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolverParam_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StreamResolverParam.class, ai.chalk.protos.chalk.graph.v1.StreamResolverParam.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.StreamResolverParam.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (messageBuilder_ != null) { messageBuilder_.clear(); } if (messageWindowBuilder_ != null) { messageWindowBuilder_.clear(); } if (stateBuilder_ != null) { stateBuilder_.clear(); } typeCase_ = 0; type_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolverParam_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParam getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.StreamResolverParam.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParam build() { ai.chalk.protos.chalk.graph.v1.StreamResolverParam result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParam buildPartial() { ai.chalk.protos.chalk.graph.v1.StreamResolverParam result = new ai.chalk.protos.chalk.graph.v1.StreamResolverParam(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.StreamResolverParam result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(ai.chalk.protos.chalk.graph.v1.StreamResolverParam result) { result.typeCase_ = typeCase_; result.type_ = this.type_; if (typeCase_ == 1 && messageBuilder_ != null) { result.type_ = messageBuilder_.build(); } if (typeCase_ == 2 && messageWindowBuilder_ != null) { result.type_ = messageWindowBuilder_.build(); } if (typeCase_ == 3 && stateBuilder_ != null) { result.type_ = stateBuilder_.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.graph.v1.StreamResolverParam) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.StreamResolverParam)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.StreamResolverParam other) { if (other == ai.chalk.protos.chalk.graph.v1.StreamResolverParam.getDefaultInstance()) return this; switch (other.getTypeCase()) { case MESSAGE: { mergeMessage(other.getMessage()); break; } case MESSAGE_WINDOW: { mergeMessageWindow(other.getMessageWindow()); break; } case STATE: { mergeState(other.getState()); break; } case TYPE_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( getMessageFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 1; break; } // case 10 case 18: { input.readMessage( getMessageWindowFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 2; break; } // case 18 case 26: { input.readMessage( getStateFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 3; 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 typeCase_ = 0; private java.lang.Object type_; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public Builder clearType() { typeCase_ = 0; type_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.Builder, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageOrBuilder> messageBuilder_; /** * <code>.chalk.graph.v1.StreamResolverParamMessage message = 1 [json_name = "message"];</code> * @return Whether the message field is set. */ @java.lang.Override public boolean hasMessage() { return typeCase_ == 1; } /** * <code>.chalk.graph.v1.StreamResolverParamMessage message = 1 [json_name = "message"];</code> * @return The message. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage getMessage() { if (messageBuilder_ == null) { if (typeCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage) type_; } return ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.getDefaultInstance(); } else { if (typeCase_ == 1) { return messageBuilder_.getMessage(); } return ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.StreamResolverParamMessage message = 1 [json_name = "message"];</code> */ public Builder setMessage(ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage value) { if (messageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { messageBuilder_.setMessage(value); } typeCase_ = 1; return this; } /** * <code>.chalk.graph.v1.StreamResolverParamMessage message = 1 [json_name = "message"];</code> */ public Builder setMessage( ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.Builder builderForValue) { if (messageBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { messageBuilder_.setMessage(builderForValue.build()); } typeCase_ = 1; return this; } /** * <code>.chalk.graph.v1.StreamResolverParamMessage message = 1 [json_name = "message"];</code> */ public Builder mergeMessage(ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage value) { if (messageBuilder_ == null) { if (typeCase_ == 1 && type_ != ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.getDefaultInstance()) { type_ = ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.newBuilder((ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 1) { messageBuilder_.mergeFrom(value); } else { messageBuilder_.setMessage(value); } } typeCase_ = 1; return this; } /** * <code>.chalk.graph.v1.StreamResolverParamMessage message = 1 [json_name = "message"];</code> */ public Builder clearMessage() { if (messageBuilder_ == null) { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; } messageBuilder_.clear(); } return this; } /** * <code>.chalk.graph.v1.StreamResolverParamMessage message = 1 [json_name = "message"];</code> */ public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.Builder getMessageBuilder() { return getMessageFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.StreamResolverParamMessage message = 1 [json_name = "message"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageOrBuilder getMessageOrBuilder() { if ((typeCase_ == 1) && (messageBuilder_ != null)) { return messageBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage) type_; } return ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.StreamResolverParamMessage message = 1 [json_name = "message"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.Builder, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { if (!(typeCase_ == 1)) { type_ = ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.getDefaultInstance(); } messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.Builder, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageOrBuilder>( (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 1; onChanged(); return messageBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.Builder, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindowOrBuilder> messageWindowBuilder_; /** * <code>.chalk.graph.v1.StreamResolverParamMessageWindow message_window = 2 [json_name = "messageWindow"];</code> * @return Whether the messageWindow field is set. */ @java.lang.Override public boolean hasMessageWindow() { return typeCase_ == 2; } /** * <code>.chalk.graph.v1.StreamResolverParamMessageWindow message_window = 2 [json_name = "messageWindow"];</code> * @return The messageWindow. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow getMessageWindow() { if (messageWindowBuilder_ == null) { if (typeCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow) type_; } return ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.getDefaultInstance(); } else { if (typeCase_ == 2) { return messageWindowBuilder_.getMessage(); } return ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.StreamResolverParamMessageWindow message_window = 2 [json_name = "messageWindow"];</code> */ public Builder setMessageWindow(ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow value) { if (messageWindowBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { messageWindowBuilder_.setMessage(value); } typeCase_ = 2; return this; } /** * <code>.chalk.graph.v1.StreamResolverParamMessageWindow message_window = 2 [json_name = "messageWindow"];</code> */ public Builder setMessageWindow( ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.Builder builderForValue) { if (messageWindowBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { messageWindowBuilder_.setMessage(builderForValue.build()); } typeCase_ = 2; return this; } /** * <code>.chalk.graph.v1.StreamResolverParamMessageWindow message_window = 2 [json_name = "messageWindow"];</code> */ public Builder mergeMessageWindow(ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow value) { if (messageWindowBuilder_ == null) { if (typeCase_ == 2 && type_ != ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.getDefaultInstance()) { type_ = ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.newBuilder((ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 2) { messageWindowBuilder_.mergeFrom(value); } else { messageWindowBuilder_.setMessage(value); } } typeCase_ = 2; return this; } /** * <code>.chalk.graph.v1.StreamResolverParamMessageWindow message_window = 2 [json_name = "messageWindow"];</code> */ public Builder clearMessageWindow() { if (messageWindowBuilder_ == null) { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; } messageWindowBuilder_.clear(); } return this; } /** * <code>.chalk.graph.v1.StreamResolverParamMessageWindow message_window = 2 [json_name = "messageWindow"];</code> */ public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.Builder getMessageWindowBuilder() { return getMessageWindowFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.StreamResolverParamMessageWindow message_window = 2 [json_name = "messageWindow"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindowOrBuilder getMessageWindowOrBuilder() { if ((typeCase_ == 2) && (messageWindowBuilder_ != null)) { return messageWindowBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow) type_; } return ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.StreamResolverParamMessageWindow message_window = 2 [json_name = "messageWindow"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.Builder, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindowOrBuilder> getMessageWindowFieldBuilder() { if (messageWindowBuilder_ == null) { if (!(typeCase_ == 2)) { type_ = ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.getDefaultInstance(); } messageWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.Builder, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindowOrBuilder>( (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 2; onChanged(); return messageWindowBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.ResolverState, ai.chalk.protos.chalk.graph.v1.ResolverState.Builder, ai.chalk.protos.chalk.graph.v1.ResolverStateOrBuilder> stateBuilder_; /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> * @return Whether the state field is set. */ @java.lang.Override public boolean hasState() { return typeCase_ == 3; } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> * @return The state. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverState getState() { if (stateBuilder_ == null) { if (typeCase_ == 3) { return (ai.chalk.protos.chalk.graph.v1.ResolverState) type_; } return ai.chalk.protos.chalk.graph.v1.ResolverState.getDefaultInstance(); } else { if (typeCase_ == 3) { return stateBuilder_.getMessage(); } return ai.chalk.protos.chalk.graph.v1.ResolverState.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ public Builder setState(ai.chalk.protos.chalk.graph.v1.ResolverState value) { if (stateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { stateBuilder_.setMessage(value); } typeCase_ = 3; return this; } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ public Builder setState( ai.chalk.protos.chalk.graph.v1.ResolverState.Builder builderForValue) { if (stateBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { stateBuilder_.setMessage(builderForValue.build()); } typeCase_ = 3; return this; } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ public Builder mergeState(ai.chalk.protos.chalk.graph.v1.ResolverState value) { if (stateBuilder_ == null) { if (typeCase_ == 3 && type_ != ai.chalk.protos.chalk.graph.v1.ResolverState.getDefaultInstance()) { type_ = ai.chalk.protos.chalk.graph.v1.ResolverState.newBuilder((ai.chalk.protos.chalk.graph.v1.ResolverState) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 3) { stateBuilder_.mergeFrom(value); } else { stateBuilder_.setMessage(value); } } typeCase_ = 3; return this; } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ public Builder clearState() { if (stateBuilder_ == null) { if (typeCase_ == 3) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 3) { typeCase_ = 0; type_ = null; } stateBuilder_.clear(); } return this; } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ public ai.chalk.protos.chalk.graph.v1.ResolverState.Builder getStateBuilder() { return getStateFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.ResolverStateOrBuilder getStateOrBuilder() { if ((typeCase_ == 3) && (stateBuilder_ != null)) { return stateBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 3) { return (ai.chalk.protos.chalk.graph.v1.ResolverState) type_; } return ai.chalk.protos.chalk.graph.v1.ResolverState.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.ResolverState, ai.chalk.protos.chalk.graph.v1.ResolverState.Builder, ai.chalk.protos.chalk.graph.v1.ResolverStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { if (!(typeCase_ == 3)) { type_ = ai.chalk.protos.chalk.graph.v1.ResolverState.getDefaultInstance(); } stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.ResolverState, ai.chalk.protos.chalk.graph.v1.ResolverState.Builder, ai.chalk.protos.chalk.graph.v1.ResolverStateOrBuilder>( (ai.chalk.protos.chalk.graph.v1.ResolverState) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 3; onChanged(); return stateBuilder_; } @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.graph.v1.StreamResolverParam) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.StreamResolverParam) private static final ai.chalk.protos.chalk.graph.v1.StreamResolverParam DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.StreamResolverParam(); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParam getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<StreamResolverParam> PARSER = new com.google.protobuf.AbstractParser<StreamResolverParam>() { @java.lang.Override public StreamResolverParam 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<StreamResolverParam> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<StreamResolverParam> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParam getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StreamResolverParamMessage.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.StreamResolverParamMessage} */ public final class StreamResolverParamMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.StreamResolverParamMessage) StreamResolverParamMessageOrBuilder { private static final long serialVersionUID = 0L; // Use StreamResolverParamMessage.newBuilder() to construct. private StreamResolverParamMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private StreamResolverParamMessage() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamResolverParamMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolverParamMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolverParamMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.class, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.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 ARROW_TYPE_FIELD_NUMBER = 2; private ai.chalk.protos.chalk.arrow.v1.ArrowType arrowType_; /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ @java.lang.Override public boolean hasArrowType() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return The arrowType. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType() { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder() { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } 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, getArrowType()); } 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, getArrowType()); } 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.graph.v1.StreamResolverParamMessage)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage other = (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage) obj; if (!getName() .equals(other.getName())) return false; if (hasArrowType() != other.hasArrowType()) return false; if (hasArrowType()) { if (!getArrowType() .equals(other.getArrowType())) 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 (hasArrowType()) { hash = (37 * hash) + ARROW_TYPE_FIELD_NUMBER; hash = (53 * hash) + getArrowType().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage 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.graph.v1.StreamResolverParamMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage 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.graph.v1.StreamResolverParamMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage 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.graph.v1.StreamResolverParamMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage 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.graph.v1.StreamResolverParamMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage 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.graph.v1.StreamResolverParamMessage 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.graph.v1.StreamResolverParamMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.StreamResolverParamMessage) ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolverParamMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolverParamMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.class, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getArrowTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; arrowType_ = null; if (arrowTypeBuilder_ != null) { arrowTypeBuilder_.dispose(); arrowTypeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolverParamMessage_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage build() { ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage buildPartial() { ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage result = new ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.arrowType_ = arrowTypeBuilder_ == null ? arrowType_ : arrowTypeBuilder_.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.graph.v1.StreamResolverParamMessage) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage other) { if (other == ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasArrowType()) { mergeArrowType(other.getArrowType()); } 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( getArrowTypeFieldBuilder().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_ = ""; /** * <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 ai.chalk.protos.chalk.arrow.v1.ArrowType arrowType_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> arrowTypeBuilder_; /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ public boolean hasArrowType() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return The arrowType. */ public ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType() { if (arrowTypeBuilder_ == null) { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } else { return arrowTypeBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder setArrowType(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (arrowTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowType_ = value; } else { arrowTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder setArrowType( ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder builderForValue) { if (arrowTypeBuilder_ == null) { arrowType_ = builderForValue.build(); } else { arrowTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder mergeArrowType(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (arrowTypeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && arrowType_ != null && arrowType_ != ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance()) { getArrowTypeBuilder().mergeFrom(value); } else { arrowType_ = value; } } else { arrowTypeBuilder_.mergeFrom(value); } if (arrowType_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder clearArrowType() { bitField0_ = (bitField0_ & ~0x00000002); arrowType_ = null; if (arrowTypeBuilder_ != null) { arrowTypeBuilder_.dispose(); arrowTypeBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder getArrowTypeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getArrowTypeFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder() { if (arrowTypeBuilder_ != null) { return arrowTypeBuilder_.getMessageOrBuilder(); } else { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> getArrowTypeFieldBuilder() { if (arrowTypeBuilder_ == null) { arrowTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder>( getArrowType(), getParentForChildren(), isClean()); arrowType_ = null; } return arrowTypeBuilder_; } @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.graph.v1.StreamResolverParamMessage) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.StreamResolverParamMessage) private static final ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage(); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<StreamResolverParamMessage> PARSER = new com.google.protobuf.AbstractParser<StreamResolverParamMessage>() { @java.lang.Override public StreamResolverParamMessage 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<StreamResolverParamMessage> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<StreamResolverParamMessage> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StreamResolverParamMessageOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface StreamResolverParamMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.StreamResolverParamMessage) 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>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ boolean hasArrowType(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return The arrowType. */ ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StreamResolverParamMessageWindow.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.StreamResolverParamMessageWindow} */ public final class StreamResolverParamMessageWindow extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.StreamResolverParamMessageWindow) StreamResolverParamMessageWindowOrBuilder { private static final long serialVersionUID = 0L; // Use StreamResolverParamMessageWindow.newBuilder() to construct. private StreamResolverParamMessageWindow(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private StreamResolverParamMessageWindow() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamResolverParamMessageWindow(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolverParamMessageWindow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolverParamMessageWindow_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.class, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.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 ARROW_TYPE_FIELD_NUMBER = 2; private ai.chalk.protos.chalk.arrow.v1.ArrowType arrowType_; /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ @java.lang.Override public boolean hasArrowType() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return The arrowType. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType() { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder() { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } 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, getArrowType()); } 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, getArrowType()); } 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.graph.v1.StreamResolverParamMessageWindow)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow other = (ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow) obj; if (!getName() .equals(other.getName())) return false; if (hasArrowType() != other.hasArrowType()) return false; if (hasArrowType()) { if (!getArrowType() .equals(other.getArrowType())) 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 (hasArrowType()) { hash = (37 * hash) + ARROW_TYPE_FIELD_NUMBER; hash = (53 * hash) + getArrowType().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow 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.graph.v1.StreamResolverParamMessageWindow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow 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.graph.v1.StreamResolverParamMessageWindow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow 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.graph.v1.StreamResolverParamMessageWindow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow 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.graph.v1.StreamResolverParamMessageWindow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow 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.graph.v1.StreamResolverParamMessageWindow 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.graph.v1.StreamResolverParamMessageWindow} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.StreamResolverParamMessageWindow) ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolverParamMessageWindow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolverParamMessageWindow_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.class, ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getArrowTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; arrowType_ = null; if (arrowTypeBuilder_ != null) { arrowTypeBuilder_.dispose(); arrowTypeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StreamResolverParamMessageWindow_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow build() { ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow buildPartial() { ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow result = new ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.arrowType_ = arrowTypeBuilder_ == null ? arrowType_ : arrowTypeBuilder_.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.graph.v1.StreamResolverParamMessageWindow) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow other) { if (other == ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasArrowType()) { mergeArrowType(other.getArrowType()); } 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( getArrowTypeFieldBuilder().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_ = ""; /** * <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 ai.chalk.protos.chalk.arrow.v1.ArrowType arrowType_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> arrowTypeBuilder_; /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ public boolean hasArrowType() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return The arrowType. */ public ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType() { if (arrowTypeBuilder_ == null) { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } else { return arrowTypeBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder setArrowType(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (arrowTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowType_ = value; } else { arrowTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder setArrowType( ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder builderForValue) { if (arrowTypeBuilder_ == null) { arrowType_ = builderForValue.build(); } else { arrowTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder mergeArrowType(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (arrowTypeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && arrowType_ != null && arrowType_ != ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance()) { getArrowTypeBuilder().mergeFrom(value); } else { arrowType_ = value; } } else { arrowTypeBuilder_.mergeFrom(value); } if (arrowType_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public Builder clearArrowType() { bitField0_ = (bitField0_ & ~0x00000002); arrowType_ = null; if (arrowTypeBuilder_ != null) { arrowTypeBuilder_.dispose(); arrowTypeBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder getArrowTypeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getArrowTypeFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder() { if (arrowTypeBuilder_ != null) { return arrowTypeBuilder_.getMessageOrBuilder(); } else { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> getArrowTypeFieldBuilder() { if (arrowTypeBuilder_ == null) { arrowTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder>( getArrowType(), getParentForChildren(), isClean()); arrowType_ = null; } return arrowTypeBuilder_; } @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.graph.v1.StreamResolverParamMessageWindow) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.StreamResolverParamMessageWindow) private static final ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow(); } public static ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<StreamResolverParamMessageWindow> PARSER = new com.google.protobuf.AbstractParser<StreamResolverParamMessageWindow>() { @java.lang.Override public StreamResolverParamMessageWindow 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<StreamResolverParamMessageWindow> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<StreamResolverParamMessageWindow> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StreamResolverParamMessageWindowOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface StreamResolverParamMessageWindowOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.StreamResolverParamMessageWindow) 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>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ boolean hasArrowType(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> * @return The arrowType. */ ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 2 [json_name = "arrowType"];</code> */ ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StreamResolverParamOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface StreamResolverParamOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.StreamResolverParam) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.graph.v1.StreamResolverParamMessage message = 1 [json_name = "message"];</code> * @return Whether the message field is set. */ boolean hasMessage(); /** * <code>.chalk.graph.v1.StreamResolverParamMessage message = 1 [json_name = "message"];</code> * @return The message. */ ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessage getMessage(); /** * <code>.chalk.graph.v1.StreamResolverParamMessage message = 1 [json_name = "message"];</code> */ ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageOrBuilder getMessageOrBuilder(); /** * <code>.chalk.graph.v1.StreamResolverParamMessageWindow message_window = 2 [json_name = "messageWindow"];</code> * @return Whether the messageWindow field is set. */ boolean hasMessageWindow(); /** * <code>.chalk.graph.v1.StreamResolverParamMessageWindow message_window = 2 [json_name = "messageWindow"];</code> * @return The messageWindow. */ ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindow getMessageWindow(); /** * <code>.chalk.graph.v1.StreamResolverParamMessageWindow message_window = 2 [json_name = "messageWindow"];</code> */ ai.chalk.protos.chalk.graph.v1.StreamResolverParamMessageWindowOrBuilder getMessageWindowOrBuilder(); /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> * @return Whether the state field is set. */ boolean hasState(); /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> * @return The state. */ ai.chalk.protos.chalk.graph.v1.ResolverState getState(); /** * <code>.chalk.graph.v1.ResolverState state = 3 [json_name = "state"];</code> */ ai.chalk.protos.chalk.graph.v1.ResolverStateOrBuilder getStateOrBuilder(); ai.chalk.protos.chalk.graph.v1.StreamResolverParam.TypeCase getTypeCase(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StreamSource.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/sources.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.StreamSource} */ public final class StreamSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.StreamSource) StreamSourceOrBuilder { private static final long serialVersionUID = 0L; // Use StreamSource.newBuilder() to construct. private StreamSource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private StreamSource() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamSource(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_StreamSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_StreamSource_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StreamSource.class, ai.chalk.protos.chalk.graph.v1.StreamSource.Builder.class); } private int sourceCase_ = 0; @SuppressWarnings("serial") private java.lang.Object source_; public enum SourceCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { KAFKA(1), KINESIS(2), PUBSUB(3), SOURCE_NOT_SET(0); private final int value; private SourceCase(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 SourceCase valueOf(int value) { return forNumber(value); } public static SourceCase forNumber(int value) { switch (value) { case 1: return KAFKA; case 2: return KINESIS; case 3: return PUBSUB; case 0: return SOURCE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SourceCase getSourceCase() { return SourceCase.forNumber( sourceCase_); } public static final int KAFKA_FIELD_NUMBER = 1; /** * <code>.chalk.graph.v1.KafkaSource kafka = 1 [json_name = "kafka"];</code> * @return Whether the kafka field is set. */ @java.lang.Override public boolean hasKafka() { return sourceCase_ == 1; } /** * <code>.chalk.graph.v1.KafkaSource kafka = 1 [json_name = "kafka"];</code> * @return The kafka. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.KafkaSource getKafka() { if (sourceCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.KafkaSource) source_; } return ai.chalk.protos.chalk.graph.v1.KafkaSource.getDefaultInstance(); } /** * <code>.chalk.graph.v1.KafkaSource kafka = 1 [json_name = "kafka"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.KafkaSourceOrBuilder getKafkaOrBuilder() { if (sourceCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.KafkaSource) source_; } return ai.chalk.protos.chalk.graph.v1.KafkaSource.getDefaultInstance(); } public static final int KINESIS_FIELD_NUMBER = 2; /** * <code>.chalk.graph.v1.KinesisSource kinesis = 2 [json_name = "kinesis"];</code> * @return Whether the kinesis field is set. */ @java.lang.Override public boolean hasKinesis() { return sourceCase_ == 2; } /** * <code>.chalk.graph.v1.KinesisSource kinesis = 2 [json_name = "kinesis"];</code> * @return The kinesis. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.KinesisSource getKinesis() { if (sourceCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.KinesisSource) source_; } return ai.chalk.protos.chalk.graph.v1.KinesisSource.getDefaultInstance(); } /** * <code>.chalk.graph.v1.KinesisSource kinesis = 2 [json_name = "kinesis"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.KinesisSourceOrBuilder getKinesisOrBuilder() { if (sourceCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.KinesisSource) source_; } return ai.chalk.protos.chalk.graph.v1.KinesisSource.getDefaultInstance(); } public static final int PUBSUB_FIELD_NUMBER = 3; /** * <code>.chalk.graph.v1.PubSubSource pubsub = 3 [json_name = "pubsub"];</code> * @return Whether the pubsub field is set. */ @java.lang.Override public boolean hasPubsub() { return sourceCase_ == 3; } /** * <code>.chalk.graph.v1.PubSubSource pubsub = 3 [json_name = "pubsub"];</code> * @return The pubsub. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.PubSubSource getPubsub() { if (sourceCase_ == 3) { return (ai.chalk.protos.chalk.graph.v1.PubSubSource) source_; } return ai.chalk.protos.chalk.graph.v1.PubSubSource.getDefaultInstance(); } /** * <code>.chalk.graph.v1.PubSubSource pubsub = 3 [json_name = "pubsub"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.PubSubSourceOrBuilder getPubsubOrBuilder() { if (sourceCase_ == 3) { return (ai.chalk.protos.chalk.graph.v1.PubSubSource) source_; } return ai.chalk.protos.chalk.graph.v1.PubSubSource.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 (sourceCase_ == 1) { output.writeMessage(1, (ai.chalk.protos.chalk.graph.v1.KafkaSource) source_); } if (sourceCase_ == 2) { output.writeMessage(2, (ai.chalk.protos.chalk.graph.v1.KinesisSource) source_); } if (sourceCase_ == 3) { output.writeMessage(3, (ai.chalk.protos.chalk.graph.v1.PubSubSource) source_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sourceCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (ai.chalk.protos.chalk.graph.v1.KafkaSource) source_); } if (sourceCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (ai.chalk.protos.chalk.graph.v1.KinesisSource) source_); } if (sourceCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (ai.chalk.protos.chalk.graph.v1.PubSubSource) source_); } 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.graph.v1.StreamSource)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.StreamSource other = (ai.chalk.protos.chalk.graph.v1.StreamSource) obj; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: if (!getKafka() .equals(other.getKafka())) return false; break; case 2: if (!getKinesis() .equals(other.getKinesis())) return false; break; case 3: if (!getPubsub() .equals(other.getPubsub())) 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 (sourceCase_) { case 1: hash = (37 * hash) + KAFKA_FIELD_NUMBER; hash = (53 * hash) + getKafka().hashCode(); break; case 2: hash = (37 * hash) + KINESIS_FIELD_NUMBER; hash = (53 * hash) + getKinesis().hashCode(); break; case 3: hash = (37 * hash) + PUBSUB_FIELD_NUMBER; hash = (53 * hash) + getPubsub().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.StreamSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamSource 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.graph.v1.StreamSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamSource 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.graph.v1.StreamSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.StreamSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamSource 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.graph.v1.StreamSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamSource 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.graph.v1.StreamSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamSource 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.graph.v1.StreamSource 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.graph.v1.StreamSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.StreamSource) ai.chalk.protos.chalk.graph.v1.StreamSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_StreamSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_StreamSource_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StreamSource.class, ai.chalk.protos.chalk.graph.v1.StreamSource.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.StreamSource.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (kafkaBuilder_ != null) { kafkaBuilder_.clear(); } if (kinesisBuilder_ != null) { kinesisBuilder_.clear(); } if (pubsubBuilder_ != null) { pubsubBuilder_.clear(); } sourceCase_ = 0; source_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_StreamSource_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSource getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.StreamSource.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSource build() { ai.chalk.protos.chalk.graph.v1.StreamSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSource buildPartial() { ai.chalk.protos.chalk.graph.v1.StreamSource result = new ai.chalk.protos.chalk.graph.v1.StreamSource(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.StreamSource result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(ai.chalk.protos.chalk.graph.v1.StreamSource result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; if (sourceCase_ == 1 && kafkaBuilder_ != null) { result.source_ = kafkaBuilder_.build(); } if (sourceCase_ == 2 && kinesisBuilder_ != null) { result.source_ = kinesisBuilder_.build(); } if (sourceCase_ == 3 && pubsubBuilder_ != null) { result.source_ = pubsubBuilder_.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.graph.v1.StreamSource) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.StreamSource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.StreamSource other) { if (other == ai.chalk.protos.chalk.graph.v1.StreamSource.getDefaultInstance()) return this; switch (other.getSourceCase()) { case KAFKA: { mergeKafka(other.getKafka()); break; } case KINESIS: { mergeKinesis(other.getKinesis()); break; } case PUBSUB: { mergePubsub(other.getPubsub()); break; } case SOURCE_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( getKafkaFieldBuilder().getBuilder(), extensionRegistry); sourceCase_ = 1; break; } // case 10 case 18: { input.readMessage( getKinesisFieldBuilder().getBuilder(), extensionRegistry); sourceCase_ = 2; break; } // case 18 case 26: { input.readMessage( getPubsubFieldBuilder().getBuilder(), extensionRegistry); sourceCase_ = 3; 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 sourceCase_ = 0; private java.lang.Object source_; public SourceCase getSourceCase() { return SourceCase.forNumber( sourceCase_); } public Builder clearSource() { sourceCase_ = 0; source_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.KafkaSource, ai.chalk.protos.chalk.graph.v1.KafkaSource.Builder, ai.chalk.protos.chalk.graph.v1.KafkaSourceOrBuilder> kafkaBuilder_; /** * <code>.chalk.graph.v1.KafkaSource kafka = 1 [json_name = "kafka"];</code> * @return Whether the kafka field is set. */ @java.lang.Override public boolean hasKafka() { return sourceCase_ == 1; } /** * <code>.chalk.graph.v1.KafkaSource kafka = 1 [json_name = "kafka"];</code> * @return The kafka. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.KafkaSource getKafka() { if (kafkaBuilder_ == null) { if (sourceCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.KafkaSource) source_; } return ai.chalk.protos.chalk.graph.v1.KafkaSource.getDefaultInstance(); } else { if (sourceCase_ == 1) { return kafkaBuilder_.getMessage(); } return ai.chalk.protos.chalk.graph.v1.KafkaSource.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.KafkaSource kafka = 1 [json_name = "kafka"];</code> */ public Builder setKafka(ai.chalk.protos.chalk.graph.v1.KafkaSource value) { if (kafkaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { kafkaBuilder_.setMessage(value); } sourceCase_ = 1; return this; } /** * <code>.chalk.graph.v1.KafkaSource kafka = 1 [json_name = "kafka"];</code> */ public Builder setKafka( ai.chalk.protos.chalk.graph.v1.KafkaSource.Builder builderForValue) { if (kafkaBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { kafkaBuilder_.setMessage(builderForValue.build()); } sourceCase_ = 1; return this; } /** * <code>.chalk.graph.v1.KafkaSource kafka = 1 [json_name = "kafka"];</code> */ public Builder mergeKafka(ai.chalk.protos.chalk.graph.v1.KafkaSource value) { if (kafkaBuilder_ == null) { if (sourceCase_ == 1 && source_ != ai.chalk.protos.chalk.graph.v1.KafkaSource.getDefaultInstance()) { source_ = ai.chalk.protos.chalk.graph.v1.KafkaSource.newBuilder((ai.chalk.protos.chalk.graph.v1.KafkaSource) source_) .mergeFrom(value).buildPartial(); } else { source_ = value; } onChanged(); } else { if (sourceCase_ == 1) { kafkaBuilder_.mergeFrom(value); } else { kafkaBuilder_.setMessage(value); } } sourceCase_ = 1; return this; } /** * <code>.chalk.graph.v1.KafkaSource kafka = 1 [json_name = "kafka"];</code> */ public Builder clearKafka() { if (kafkaBuilder_ == null) { if (sourceCase_ == 1) { sourceCase_ = 0; source_ = null; onChanged(); } } else { if (sourceCase_ == 1) { sourceCase_ = 0; source_ = null; } kafkaBuilder_.clear(); } return this; } /** * <code>.chalk.graph.v1.KafkaSource kafka = 1 [json_name = "kafka"];</code> */ public ai.chalk.protos.chalk.graph.v1.KafkaSource.Builder getKafkaBuilder() { return getKafkaFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.KafkaSource kafka = 1 [json_name = "kafka"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.KafkaSourceOrBuilder getKafkaOrBuilder() { if ((sourceCase_ == 1) && (kafkaBuilder_ != null)) { return kafkaBuilder_.getMessageOrBuilder(); } else { if (sourceCase_ == 1) { return (ai.chalk.protos.chalk.graph.v1.KafkaSource) source_; } return ai.chalk.protos.chalk.graph.v1.KafkaSource.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.KafkaSource kafka = 1 [json_name = "kafka"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.KafkaSource, ai.chalk.protos.chalk.graph.v1.KafkaSource.Builder, ai.chalk.protos.chalk.graph.v1.KafkaSourceOrBuilder> getKafkaFieldBuilder() { if (kafkaBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = ai.chalk.protos.chalk.graph.v1.KafkaSource.getDefaultInstance(); } kafkaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.KafkaSource, ai.chalk.protos.chalk.graph.v1.KafkaSource.Builder, ai.chalk.protos.chalk.graph.v1.KafkaSourceOrBuilder>( (ai.chalk.protos.chalk.graph.v1.KafkaSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 1; onChanged(); return kafkaBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.KinesisSource, ai.chalk.protos.chalk.graph.v1.KinesisSource.Builder, ai.chalk.protos.chalk.graph.v1.KinesisSourceOrBuilder> kinesisBuilder_; /** * <code>.chalk.graph.v1.KinesisSource kinesis = 2 [json_name = "kinesis"];</code> * @return Whether the kinesis field is set. */ @java.lang.Override public boolean hasKinesis() { return sourceCase_ == 2; } /** * <code>.chalk.graph.v1.KinesisSource kinesis = 2 [json_name = "kinesis"];</code> * @return The kinesis. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.KinesisSource getKinesis() { if (kinesisBuilder_ == null) { if (sourceCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.KinesisSource) source_; } return ai.chalk.protos.chalk.graph.v1.KinesisSource.getDefaultInstance(); } else { if (sourceCase_ == 2) { return kinesisBuilder_.getMessage(); } return ai.chalk.protos.chalk.graph.v1.KinesisSource.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.KinesisSource kinesis = 2 [json_name = "kinesis"];</code> */ public Builder setKinesis(ai.chalk.protos.chalk.graph.v1.KinesisSource value) { if (kinesisBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { kinesisBuilder_.setMessage(value); } sourceCase_ = 2; return this; } /** * <code>.chalk.graph.v1.KinesisSource kinesis = 2 [json_name = "kinesis"];</code> */ public Builder setKinesis( ai.chalk.protos.chalk.graph.v1.KinesisSource.Builder builderForValue) { if (kinesisBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { kinesisBuilder_.setMessage(builderForValue.build()); } sourceCase_ = 2; return this; } /** * <code>.chalk.graph.v1.KinesisSource kinesis = 2 [json_name = "kinesis"];</code> */ public Builder mergeKinesis(ai.chalk.protos.chalk.graph.v1.KinesisSource value) { if (kinesisBuilder_ == null) { if (sourceCase_ == 2 && source_ != ai.chalk.protos.chalk.graph.v1.KinesisSource.getDefaultInstance()) { source_ = ai.chalk.protos.chalk.graph.v1.KinesisSource.newBuilder((ai.chalk.protos.chalk.graph.v1.KinesisSource) source_) .mergeFrom(value).buildPartial(); } else { source_ = value; } onChanged(); } else { if (sourceCase_ == 2) { kinesisBuilder_.mergeFrom(value); } else { kinesisBuilder_.setMessage(value); } } sourceCase_ = 2; return this; } /** * <code>.chalk.graph.v1.KinesisSource kinesis = 2 [json_name = "kinesis"];</code> */ public Builder clearKinesis() { if (kinesisBuilder_ == null) { if (sourceCase_ == 2) { sourceCase_ = 0; source_ = null; onChanged(); } } else { if (sourceCase_ == 2) { sourceCase_ = 0; source_ = null; } kinesisBuilder_.clear(); } return this; } /** * <code>.chalk.graph.v1.KinesisSource kinesis = 2 [json_name = "kinesis"];</code> */ public ai.chalk.protos.chalk.graph.v1.KinesisSource.Builder getKinesisBuilder() { return getKinesisFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.KinesisSource kinesis = 2 [json_name = "kinesis"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.KinesisSourceOrBuilder getKinesisOrBuilder() { if ((sourceCase_ == 2) && (kinesisBuilder_ != null)) { return kinesisBuilder_.getMessageOrBuilder(); } else { if (sourceCase_ == 2) { return (ai.chalk.protos.chalk.graph.v1.KinesisSource) source_; } return ai.chalk.protos.chalk.graph.v1.KinesisSource.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.KinesisSource kinesis = 2 [json_name = "kinesis"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.KinesisSource, ai.chalk.protos.chalk.graph.v1.KinesisSource.Builder, ai.chalk.protos.chalk.graph.v1.KinesisSourceOrBuilder> getKinesisFieldBuilder() { if (kinesisBuilder_ == null) { if (!(sourceCase_ == 2)) { source_ = ai.chalk.protos.chalk.graph.v1.KinesisSource.getDefaultInstance(); } kinesisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.KinesisSource, ai.chalk.protos.chalk.graph.v1.KinesisSource.Builder, ai.chalk.protos.chalk.graph.v1.KinesisSourceOrBuilder>( (ai.chalk.protos.chalk.graph.v1.KinesisSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 2; onChanged(); return kinesisBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.PubSubSource, ai.chalk.protos.chalk.graph.v1.PubSubSource.Builder, ai.chalk.protos.chalk.graph.v1.PubSubSourceOrBuilder> pubsubBuilder_; /** * <code>.chalk.graph.v1.PubSubSource pubsub = 3 [json_name = "pubsub"];</code> * @return Whether the pubsub field is set. */ @java.lang.Override public boolean hasPubsub() { return sourceCase_ == 3; } /** * <code>.chalk.graph.v1.PubSubSource pubsub = 3 [json_name = "pubsub"];</code> * @return The pubsub. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.PubSubSource getPubsub() { if (pubsubBuilder_ == null) { if (sourceCase_ == 3) { return (ai.chalk.protos.chalk.graph.v1.PubSubSource) source_; } return ai.chalk.protos.chalk.graph.v1.PubSubSource.getDefaultInstance(); } else { if (sourceCase_ == 3) { return pubsubBuilder_.getMessage(); } return ai.chalk.protos.chalk.graph.v1.PubSubSource.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.PubSubSource pubsub = 3 [json_name = "pubsub"];</code> */ public Builder setPubsub(ai.chalk.protos.chalk.graph.v1.PubSubSource value) { if (pubsubBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { pubsubBuilder_.setMessage(value); } sourceCase_ = 3; return this; } /** * <code>.chalk.graph.v1.PubSubSource pubsub = 3 [json_name = "pubsub"];</code> */ public Builder setPubsub( ai.chalk.protos.chalk.graph.v1.PubSubSource.Builder builderForValue) { if (pubsubBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { pubsubBuilder_.setMessage(builderForValue.build()); } sourceCase_ = 3; return this; } /** * <code>.chalk.graph.v1.PubSubSource pubsub = 3 [json_name = "pubsub"];</code> */ public Builder mergePubsub(ai.chalk.protos.chalk.graph.v1.PubSubSource value) { if (pubsubBuilder_ == null) { if (sourceCase_ == 3 && source_ != ai.chalk.protos.chalk.graph.v1.PubSubSource.getDefaultInstance()) { source_ = ai.chalk.protos.chalk.graph.v1.PubSubSource.newBuilder((ai.chalk.protos.chalk.graph.v1.PubSubSource) source_) .mergeFrom(value).buildPartial(); } else { source_ = value; } onChanged(); } else { if (sourceCase_ == 3) { pubsubBuilder_.mergeFrom(value); } else { pubsubBuilder_.setMessage(value); } } sourceCase_ = 3; return this; } /** * <code>.chalk.graph.v1.PubSubSource pubsub = 3 [json_name = "pubsub"];</code> */ public Builder clearPubsub() { if (pubsubBuilder_ == null) { if (sourceCase_ == 3) { sourceCase_ = 0; source_ = null; onChanged(); } } else { if (sourceCase_ == 3) { sourceCase_ = 0; source_ = null; } pubsubBuilder_.clear(); } return this; } /** * <code>.chalk.graph.v1.PubSubSource pubsub = 3 [json_name = "pubsub"];</code> */ public ai.chalk.protos.chalk.graph.v1.PubSubSource.Builder getPubsubBuilder() { return getPubsubFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.PubSubSource pubsub = 3 [json_name = "pubsub"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.PubSubSourceOrBuilder getPubsubOrBuilder() { if ((sourceCase_ == 3) && (pubsubBuilder_ != null)) { return pubsubBuilder_.getMessageOrBuilder(); } else { if (sourceCase_ == 3) { return (ai.chalk.protos.chalk.graph.v1.PubSubSource) source_; } return ai.chalk.protos.chalk.graph.v1.PubSubSource.getDefaultInstance(); } } /** * <code>.chalk.graph.v1.PubSubSource pubsub = 3 [json_name = "pubsub"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.PubSubSource, ai.chalk.protos.chalk.graph.v1.PubSubSource.Builder, ai.chalk.protos.chalk.graph.v1.PubSubSourceOrBuilder> getPubsubFieldBuilder() { if (pubsubBuilder_ == null) { if (!(sourceCase_ == 3)) { source_ = ai.chalk.protos.chalk.graph.v1.PubSubSource.getDefaultInstance(); } pubsubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.PubSubSource, ai.chalk.protos.chalk.graph.v1.PubSubSource.Builder, ai.chalk.protos.chalk.graph.v1.PubSubSourceOrBuilder>( (ai.chalk.protos.chalk.graph.v1.PubSubSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 3; onChanged(); return pubsubBuilder_; } @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.graph.v1.StreamSource) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.StreamSource) private static final ai.chalk.protos.chalk.graph.v1.StreamSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.StreamSource(); } public static ai.chalk.protos.chalk.graph.v1.StreamSource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<StreamSource> PARSER = new com.google.protobuf.AbstractParser<StreamSource>() { @java.lang.Override public StreamSource 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<StreamSource> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<StreamSource> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StreamSourceOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/sources.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface StreamSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.StreamSource) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.graph.v1.KafkaSource kafka = 1 [json_name = "kafka"];</code> * @return Whether the kafka field is set. */ boolean hasKafka(); /** * <code>.chalk.graph.v1.KafkaSource kafka = 1 [json_name = "kafka"];</code> * @return The kafka. */ ai.chalk.protos.chalk.graph.v1.KafkaSource getKafka(); /** * <code>.chalk.graph.v1.KafkaSource kafka = 1 [json_name = "kafka"];</code> */ ai.chalk.protos.chalk.graph.v1.KafkaSourceOrBuilder getKafkaOrBuilder(); /** * <code>.chalk.graph.v1.KinesisSource kinesis = 2 [json_name = "kinesis"];</code> * @return Whether the kinesis field is set. */ boolean hasKinesis(); /** * <code>.chalk.graph.v1.KinesisSource kinesis = 2 [json_name = "kinesis"];</code> * @return The kinesis. */ ai.chalk.protos.chalk.graph.v1.KinesisSource getKinesis(); /** * <code>.chalk.graph.v1.KinesisSource kinesis = 2 [json_name = "kinesis"];</code> */ ai.chalk.protos.chalk.graph.v1.KinesisSourceOrBuilder getKinesisOrBuilder(); /** * <code>.chalk.graph.v1.PubSubSource pubsub = 3 [json_name = "pubsub"];</code> * @return Whether the pubsub field is set. */ boolean hasPubsub(); /** * <code>.chalk.graph.v1.PubSubSource pubsub = 3 [json_name = "pubsub"];</code> * @return The pubsub. */ ai.chalk.protos.chalk.graph.v1.PubSubSource getPubsub(); /** * <code>.chalk.graph.v1.PubSubSource pubsub = 3 [json_name = "pubsub"];</code> */ ai.chalk.protos.chalk.graph.v1.PubSubSourceOrBuilder getPubsubOrBuilder(); ai.chalk.protos.chalk.graph.v1.StreamSource.SourceCase getSourceCase(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StreamSourceReference.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/sources.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.StreamSourceReference} */ public final class StreamSourceReference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.StreamSourceReference) StreamSourceReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use StreamSourceReference.newBuilder() to construct. private StreamSourceReference(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private StreamSourceReference() { type_ = 0; name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamSourceReference(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_StreamSourceReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_StreamSourceReference_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StreamSourceReference.class, ai.chalk.protos.chalk.graph.v1.StreamSourceReference.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_ = 0; /** * <code>.chalk.graph.v1.StreamSourceType type = 1 [json_name = "type"];</code> * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * <code>.chalk.graph.v1.StreamSourceType type = 1 [json_name = "type"];</code> * @return The type. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSourceType getType() { ai.chalk.protos.chalk.graph.v1.StreamSourceType result = ai.chalk.protos.chalk.graph.v1.StreamSourceType.forNumber(type_); return result == null ? ai.chalk.protos.chalk.graph.v1.StreamSourceType.UNRECOGNIZED : result; } 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; } } 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 (type_ != ai.chalk.protos.chalk.graph.v1.StreamSourceType.STREAM_SOURCE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != ai.chalk.protos.chalk.graph.v1.StreamSourceType.STREAM_SOURCE_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.graph.v1.StreamSourceReference)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.StreamSourceReference other = (ai.chalk.protos.chalk.graph.v1.StreamSourceReference) obj; if (type_ != other.type_) return false; 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; 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.graph.v1.StreamSourceReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamSourceReference 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.graph.v1.StreamSourceReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamSourceReference 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.graph.v1.StreamSourceReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StreamSourceReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.StreamSourceReference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamSourceReference 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.graph.v1.StreamSourceReference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamSourceReference 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.graph.v1.StreamSourceReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StreamSourceReference 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.graph.v1.StreamSourceReference 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.graph.v1.StreamSourceReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.StreamSourceReference) ai.chalk.protos.chalk.graph.v1.StreamSourceReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_StreamSourceReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_StreamSourceReference_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StreamSourceReference.class, ai.chalk.protos.chalk.graph.v1.StreamSourceReference.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.StreamSourceReference.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 0; name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_StreamSourceReference_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSourceReference getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.StreamSourceReference.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSourceReference build() { ai.chalk.protos.chalk.graph.v1.StreamSourceReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSourceReference buildPartial() { ai.chalk.protos.chalk.graph.v1.StreamSourceReference result = new ai.chalk.protos.chalk.graph.v1.StreamSourceReference(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.StreamSourceReference result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000002) != 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.graph.v1.StreamSourceReference) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.StreamSourceReference)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.StreamSourceReference other) { if (other == ai.chalk.protos.chalk.graph.v1.StreamSourceReference.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getName().isEmpty()) { name_ = other.name_; 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 8: { type_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { name_ = 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 int type_ = 0; /** * <code>.chalk.graph.v1.StreamSourceType type = 1 [json_name = "type"];</code> * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * <code>.chalk.graph.v1.StreamSourceType type = 1 [json_name = "type"];</code> * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.graph.v1.StreamSourceType type = 1 [json_name = "type"];</code> * @return The type. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSourceType getType() { ai.chalk.protos.chalk.graph.v1.StreamSourceType result = ai.chalk.protos.chalk.graph.v1.StreamSourceType.forNumber(type_); return result == null ? ai.chalk.protos.chalk.graph.v1.StreamSourceType.UNRECOGNIZED : result; } /** * <code>.chalk.graph.v1.StreamSourceType type = 1 [json_name = "type"];</code> * @param value The type to set. * @return This builder for chaining. */ public Builder setType(ai.chalk.protos.chalk.graph.v1.StreamSourceType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * <code>.chalk.graph.v1.StreamSourceType type = 1 [json_name = "type"];</code> * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; 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; } @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.graph.v1.StreamSourceReference) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.StreamSourceReference) private static final ai.chalk.protos.chalk.graph.v1.StreamSourceReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.StreamSourceReference(); } public static ai.chalk.protos.chalk.graph.v1.StreamSourceReference getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<StreamSourceReference> PARSER = new com.google.protobuf.AbstractParser<StreamSourceReference>() { @java.lang.Override public StreamSourceReference 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<StreamSourceReference> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<StreamSourceReference> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StreamSourceReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StreamSourceReferenceOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/sources.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface StreamSourceReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.StreamSourceReference) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.graph.v1.StreamSourceType type = 1 [json_name = "type"];</code> * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * <code>.chalk.graph.v1.StreamSourceType type = 1 [json_name = "type"];</code> * @return The type. */ ai.chalk.protos.chalk.graph.v1.StreamSourceType getType(); /** * <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(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StreamSourceType.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/sources.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf enum {@code chalk.graph.v1.StreamSourceType} */ public enum StreamSourceType implements com.google.protobuf.ProtocolMessageEnum { /** * <code>STREAM_SOURCE_TYPE_UNSPECIFIED = 0;</code> */ STREAM_SOURCE_TYPE_UNSPECIFIED(0), /** * <code>STREAM_SOURCE_TYPE_KAFKA = 1;</code> */ STREAM_SOURCE_TYPE_KAFKA(1), /** * <code>STREAM_SOURCE_TYPE_KINESIS = 2;</code> */ STREAM_SOURCE_TYPE_KINESIS(2), /** * <code>STREAM_SOURCE_TYPE_PUBSUB = 3;</code> */ STREAM_SOURCE_TYPE_PUBSUB(3), UNRECOGNIZED(-1), ; /** * <code>STREAM_SOURCE_TYPE_UNSPECIFIED = 0;</code> */ public static final int STREAM_SOURCE_TYPE_UNSPECIFIED_VALUE = 0; /** * <code>STREAM_SOURCE_TYPE_KAFKA = 1;</code> */ public static final int STREAM_SOURCE_TYPE_KAFKA_VALUE = 1; /** * <code>STREAM_SOURCE_TYPE_KINESIS = 2;</code> */ public static final int STREAM_SOURCE_TYPE_KINESIS_VALUE = 2; /** * <code>STREAM_SOURCE_TYPE_PUBSUB = 3;</code> */ public static final int STREAM_SOURCE_TYPE_PUBSUB_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 StreamSourceType 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 StreamSourceType forNumber(int value) { switch (value) { case 0: return STREAM_SOURCE_TYPE_UNSPECIFIED; case 1: return STREAM_SOURCE_TYPE_KAFKA; case 2: return STREAM_SOURCE_TYPE_KINESIS; case 3: return STREAM_SOURCE_TYPE_PUBSUB; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<StreamSourceType> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< StreamSourceType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<StreamSourceType>() { public StreamSourceType findValueByNumber(int number) { return StreamSourceType.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.graph.v1.SourcesProto.getDescriptor().getEnumTypes().get(0); } private static final StreamSourceType[] VALUES = values(); public static StreamSourceType 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 StreamSourceType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:chalk.graph.v1.StreamSourceType) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StrictValidation.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.StrictValidation} */ public final class StrictValidation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.StrictValidation) StrictValidationOrBuilder { private static final long serialVersionUID = 0L; // Use StrictValidation.newBuilder() to construct. private StrictValidation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private StrictValidation() { validations_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StrictValidation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StrictValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StrictValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StrictValidation.class, ai.chalk.protos.chalk.graph.v1.StrictValidation.Builder.class); } private int bitField0_; public static final int FEATURE_FIELD_NUMBER = 1; private ai.chalk.protos.chalk.graph.v1.FeatureReference feature_; /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> * @return Whether the feature field is set. */ @java.lang.Override public boolean hasFeature() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> * @return The feature. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureReference getFeature() { return feature_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : feature_; } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getFeatureOrBuilder() { return feature_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : feature_; } public static final int VALIDATIONS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureValidation> validations_; /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureValidation> getValidationsList() { return validations_; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder> getValidationsOrBuilderList() { return validations_; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ @java.lang.Override public int getValidationsCount() { return validations_.size(); } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureValidation getValidations(int index) { return validations_.get(index); } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder getValidationsOrBuilder( int index) { return validations_.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 { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getFeature()); } for (int i = 0; i < validations_.size(); i++) { output.writeMessage(2, validations_.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.CodedOutputStream .computeMessageSize(1, getFeature()); } for (int i = 0; i < validations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, validations_.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.graph.v1.StrictValidation)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.StrictValidation other = (ai.chalk.protos.chalk.graph.v1.StrictValidation) obj; if (hasFeature() != other.hasFeature()) return false; if (hasFeature()) { if (!getFeature() .equals(other.getFeature())) return false; } if (!getValidationsList() .equals(other.getValidationsList())) 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 (hasFeature()) { hash = (37 * hash) + FEATURE_FIELD_NUMBER; hash = (53 * hash) + getFeature().hashCode(); } if (getValidationsCount() > 0) { hash = (37 * hash) + VALIDATIONS_FIELD_NUMBER; hash = (53 * hash) + getValidationsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.StrictValidation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StrictValidation 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.graph.v1.StrictValidation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StrictValidation 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.graph.v1.StrictValidation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.StrictValidation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.StrictValidation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StrictValidation 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.graph.v1.StrictValidation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StrictValidation 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.graph.v1.StrictValidation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.StrictValidation 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.graph.v1.StrictValidation 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.graph.v1.StrictValidation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.StrictValidation) ai.chalk.protos.chalk.graph.v1.StrictValidationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StrictValidation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StrictValidation_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.StrictValidation.class, ai.chalk.protos.chalk.graph.v1.StrictValidation.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.StrictValidation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFeatureFieldBuilder(); getValidationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; feature_ = null; if (featureBuilder_ != null) { featureBuilder_.dispose(); featureBuilder_ = null; } if (validationsBuilder_ == null) { validations_ = java.util.Collections.emptyList(); } else { validations_ = null; validationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_StrictValidation_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StrictValidation getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.StrictValidation.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StrictValidation build() { ai.chalk.protos.chalk.graph.v1.StrictValidation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StrictValidation buildPartial() { ai.chalk.protos.chalk.graph.v1.StrictValidation result = new ai.chalk.protos.chalk.graph.v1.StrictValidation(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.graph.v1.StrictValidation result) { if (validationsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { validations_ = java.util.Collections.unmodifiableList(validations_); bitField0_ = (bitField0_ & ~0x00000002); } result.validations_ = validations_; } else { result.validations_ = validationsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.StrictValidation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.feature_ = featureBuilder_ == null ? feature_ : featureBuilder_.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.graph.v1.StrictValidation) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.StrictValidation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.StrictValidation other) { if (other == ai.chalk.protos.chalk.graph.v1.StrictValidation.getDefaultInstance()) return this; if (other.hasFeature()) { mergeFeature(other.getFeature()); } if (validationsBuilder_ == null) { if (!other.validations_.isEmpty()) { if (validations_.isEmpty()) { validations_ = other.validations_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValidationsIsMutable(); validations_.addAll(other.validations_); } onChanged(); } } else { if (!other.validations_.isEmpty()) { if (validationsBuilder_.isEmpty()) { validationsBuilder_.dispose(); validationsBuilder_ = null; validations_ = other.validations_; bitField0_ = (bitField0_ & ~0x00000002); validationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValidationsFieldBuilder() : null; } else { validationsBuilder_.addAllMessages(other.validations_); } } } 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( getFeatureFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ai.chalk.protos.chalk.graph.v1.FeatureValidation m = input.readMessage( ai.chalk.protos.chalk.graph.v1.FeatureValidation.parser(), extensionRegistry); if (validationsBuilder_ == null) { ensureValidationsIsMutable(); validations_.add(m); } else { validationsBuilder_.addMessage(m); } 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.graph.v1.FeatureReference feature_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder> featureBuilder_; /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> * @return Whether the feature field is set. */ public boolean hasFeature() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> * @return The feature. */ public ai.chalk.protos.chalk.graph.v1.FeatureReference getFeature() { if (featureBuilder_ == null) { return feature_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : feature_; } else { return featureBuilder_.getMessage(); } } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ public Builder setFeature(ai.chalk.protos.chalk.graph.v1.FeatureReference value) { if (featureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } feature_ = value; } else { featureBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ public Builder setFeature( ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder builderForValue) { if (featureBuilder_ == null) { feature_ = builderForValue.build(); } else { featureBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ public Builder mergeFeature(ai.chalk.protos.chalk.graph.v1.FeatureReference value) { if (featureBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && feature_ != null && feature_ != ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance()) { getFeatureBuilder().mergeFrom(value); } else { feature_ = value; } } else { featureBuilder_.mergeFrom(value); } if (feature_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ public Builder clearFeature() { bitField0_ = (bitField0_ & ~0x00000001); feature_ = null; if (featureBuilder_ != null) { featureBuilder_.dispose(); featureBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder getFeatureBuilder() { bitField0_ |= 0x00000001; onChanged(); return getFeatureFieldBuilder().getBuilder(); } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getFeatureOrBuilder() { if (featureBuilder_ != null) { return featureBuilder_.getMessageOrBuilder(); } else { return feature_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : feature_; } } /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder> getFeatureFieldBuilder() { if (featureBuilder_ == null) { featureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder>( getFeature(), getParentForChildren(), isClean()); feature_ = null; } return featureBuilder_; } private java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureValidation> validations_ = java.util.Collections.emptyList(); private void ensureValidationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { validations_ = new java.util.ArrayList<ai.chalk.protos.chalk.graph.v1.FeatureValidation>(validations_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureValidation, ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder, ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder> validationsBuilder_; /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureValidation> getValidationsList() { if (validationsBuilder_ == null) { return java.util.Collections.unmodifiableList(validations_); } else { return validationsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public int getValidationsCount() { if (validationsBuilder_ == null) { return validations_.size(); } else { return validationsBuilder_.getCount(); } } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureValidation getValidations(int index) { if (validationsBuilder_ == null) { return validations_.get(index); } else { return validationsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public Builder setValidations( int index, ai.chalk.protos.chalk.graph.v1.FeatureValidation value) { if (validationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidationsIsMutable(); validations_.set(index, value); onChanged(); } else { validationsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public Builder setValidations( int index, ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder builderForValue) { if (validationsBuilder_ == null) { ensureValidationsIsMutable(); validations_.set(index, builderForValue.build()); onChanged(); } else { validationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public Builder addValidations(ai.chalk.protos.chalk.graph.v1.FeatureValidation value) { if (validationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidationsIsMutable(); validations_.add(value); onChanged(); } else { validationsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public Builder addValidations( int index, ai.chalk.protos.chalk.graph.v1.FeatureValidation value) { if (validationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidationsIsMutable(); validations_.add(index, value); onChanged(); } else { validationsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public Builder addValidations( ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder builderForValue) { if (validationsBuilder_ == null) { ensureValidationsIsMutable(); validations_.add(builderForValue.build()); onChanged(); } else { validationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public Builder addValidations( int index, ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder builderForValue) { if (validationsBuilder_ == null) { ensureValidationsIsMutable(); validations_.add(index, builderForValue.build()); onChanged(); } else { validationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public Builder addAllValidations( java.lang.Iterable<? extends ai.chalk.protos.chalk.graph.v1.FeatureValidation> values) { if (validationsBuilder_ == null) { ensureValidationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, validations_); onChanged(); } else { validationsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public Builder clearValidations() { if (validationsBuilder_ == null) { validations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { validationsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public Builder removeValidations(int index) { if (validationsBuilder_ == null) { ensureValidationsIsMutable(); validations_.remove(index); onChanged(); } else { validationsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder getValidationsBuilder( int index) { return getValidationsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder getValidationsOrBuilder( int index) { if (validationsBuilder_ == null) { return validations_.get(index); } else { return validationsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder> getValidationsOrBuilderList() { if (validationsBuilder_ != null) { return validationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(validations_); } } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder addValidationsBuilder() { return getValidationsFieldBuilder().addBuilder( ai.chalk.protos.chalk.graph.v1.FeatureValidation.getDefaultInstance()); } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder addValidationsBuilder( int index) { return getValidationsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.graph.v1.FeatureValidation.getDefaultInstance()); } /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ public java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder> getValidationsBuilderList() { return getValidationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureValidation, ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder, ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder> getValidationsFieldBuilder() { if (validationsBuilder_ == null) { validationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureValidation, ai.chalk.protos.chalk.graph.v1.FeatureValidation.Builder, ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder>( validations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); validations_ = null; } return validationsBuilder_; } @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.graph.v1.StrictValidation) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.StrictValidation) private static final ai.chalk.protos.chalk.graph.v1.StrictValidation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.StrictValidation(); } public static ai.chalk.protos.chalk.graph.v1.StrictValidation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<StrictValidation> PARSER = new com.google.protobuf.AbstractParser<StrictValidation>() { @java.lang.Override public StrictValidation 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<StrictValidation> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<StrictValidation> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.StrictValidation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/StrictValidationOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface StrictValidationOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.StrictValidation) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> * @return Whether the feature field is set. */ boolean hasFeature(); /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> * @return The feature. */ ai.chalk.protos.chalk.graph.v1.FeatureReference getFeature(); /** * <code>.chalk.graph.v1.FeatureReference feature = 1 [json_name = "feature"];</code> */ ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getFeatureOrBuilder(); /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureValidation> getValidationsList(); /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ ai.chalk.protos.chalk.graph.v1.FeatureValidation getValidations(int index); /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ int getValidationsCount(); /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder> getValidationsOrBuilderList(); /** * <code>repeated .chalk.graph.v1.FeatureValidation validations = 2 [json_name = "validations"];</code> */ ai.chalk.protos.chalk.graph.v1.FeatureValidationOrBuilder getValidationsOrBuilder( int index); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/TrinoSource.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/sources.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.TrinoSource} */ public final class TrinoSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.TrinoSource) TrinoSourceOrBuilder { private static final long serialVersionUID = 0L; // Use TrinoSource.newBuilder() to construct. private TrinoSource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private TrinoSource() { name_ = ""; host_ = ""; port_ = ""; catalog_ = ""; schema_ = ""; user_ = ""; password_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TrinoSource(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_TrinoSource_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 8: return internalGetEngineArgs(); case 9: return internalGetAsyncEngineArgs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_TrinoSource_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.TrinoSource.class, ai.chalk.protos.chalk.graph.v1.TrinoSource.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 HOST_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object host_ = ""; /** * <code>string host = 2 [json_name = "host"];</code> * @return The host. */ @java.lang.Override public java.lang.String getHost() { java.lang.Object ref = host_; 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(); host_ = s; return s; } } /** * <code>string host = 2 [json_name = "host"];</code> * @return The bytes for host. */ @java.lang.Override public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PORT_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object port_ = ""; /** * <code>string port = 3 [json_name = "port"];</code> * @return The port. */ @java.lang.Override public java.lang.String getPort() { java.lang.Object ref = port_; 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(); port_ = s; return s; } } /** * <code>string port = 3 [json_name = "port"];</code> * @return The bytes for port. */ @java.lang.Override public com.google.protobuf.ByteString getPortBytes() { java.lang.Object ref = port_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); port_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CATALOG_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object catalog_ = ""; /** * <code>string catalog = 4 [json_name = "catalog"];</code> * @return The catalog. */ @java.lang.Override public java.lang.String getCatalog() { java.lang.Object ref = catalog_; 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(); catalog_ = s; return s; } } /** * <code>string catalog = 4 [json_name = "catalog"];</code> * @return The bytes for catalog. */ @java.lang.Override public com.google.protobuf.ByteString getCatalogBytes() { java.lang.Object ref = catalog_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalog_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCHEMA_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** * <code>string schema = 5 [json_name = "schema"];</code> * @return The schema. */ @java.lang.Override public java.lang.String getSchema() { java.lang.Object ref = schema_; 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(); schema_ = s; return s; } } /** * <code>string schema = 5 [json_name = "schema"];</code> * @return The bytes for schema. */ @java.lang.Override public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schema_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object user_ = ""; /** * <code>string user = 6 [json_name = "user"];</code> * @return The user. */ @java.lang.Override public java.lang.String getUser() { java.lang.Object ref = user_; 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(); user_ = s; return s; } } /** * <code>string user = 6 [json_name = "user"];</code> * @return The bytes for user. */ @java.lang.Override public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORD_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** * <code>string password = 7 [json_name = "password"];</code> * @return The password. */ @java.lang.Override public java.lang.String getPassword() { java.lang.Object ref = password_; 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(); password_ = s; return s; } } /** * <code>string password = 7 [json_name = "password"];</code> * @return The bytes for password. */ @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENGINE_ARGS_FIELD_NUMBER = 8; private static final class EngineArgsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue>newDefaultInstance( ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_TrinoSource_EngineArgsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> engineArgs_; private com.google.protobuf.MapField<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> internalGetEngineArgs() { if (engineArgs_ == null) { return com.google.protobuf.MapField.emptyMapField( EngineArgsDefaultEntryHolder.defaultEntry); } return engineArgs_; } public int getEngineArgsCount() { return internalGetEngineArgs().getMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ @java.lang.Override public boolean containsEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetEngineArgs().getMap().containsKey(key); } /** * Use {@link #getEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgs() { return getEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgsMap() { return internalGetEngineArgs().getMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetEngineArgs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetEngineArgs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ASYNC_ENGINE_ARGS_FIELD_NUMBER = 9; private static final class AsyncEngineArgsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue>newDefaultInstance( ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_TrinoSource_AsyncEngineArgsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, ai.chalk.protos.chalk.arrow.v1.ScalarValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> asyncEngineArgs_; private com.google.protobuf.MapField<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> internalGetAsyncEngineArgs() { if (asyncEngineArgs_ == null) { return com.google.protobuf.MapField.emptyMapField( AsyncEngineArgsDefaultEntryHolder.defaultEntry); } return asyncEngineArgs_; } public int getAsyncEngineArgsCount() { return internalGetAsyncEngineArgs().getMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public boolean containsAsyncEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAsyncEngineArgs().getMap().containsKey(key); } /** * Use {@link #getAsyncEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgs() { return getAsyncEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgsMap() { return internalGetAsyncEngineArgs().getMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetAsyncEngineArgs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> map = internalGetAsyncEngineArgs().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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, host_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(port_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalog_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, catalog_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, schema_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, user_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, password_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetEngineArgs(), EngineArgsDefaultEntryHolder.defaultEntry, 8); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAsyncEngineArgs(), AsyncEngineArgsDefaultEntryHolder.defaultEntry, 9); 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(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, host_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(port_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalog_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, catalog_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, schema_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, user_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, password_); } for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> entry : internalGetEngineArgs().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> engineArgs__ = EngineArgsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, engineArgs__); } for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> entry : internalGetAsyncEngineArgs().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> asyncEngineArgs__ = AsyncEngineArgsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, asyncEngineArgs__); } 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.graph.v1.TrinoSource)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.TrinoSource other = (ai.chalk.protos.chalk.graph.v1.TrinoSource) obj; if (!getName() .equals(other.getName())) return false; if (!getHost() .equals(other.getHost())) return false; if (!getPort() .equals(other.getPort())) return false; if (!getCatalog() .equals(other.getCatalog())) return false; if (!getSchema() .equals(other.getSchema())) return false; if (!getUser() .equals(other.getUser())) return false; if (!getPassword() .equals(other.getPassword())) return false; if (!internalGetEngineArgs().equals( other.internalGetEngineArgs())) return false; if (!internalGetAsyncEngineArgs().equals( other.internalGetAsyncEngineArgs())) 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) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort().hashCode(); hash = (37 * hash) + CATALOG_FIELD_NUMBER; hash = (53 * hash) + getCatalog().hashCode(); hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); if (!internalGetEngineArgs().getMap().isEmpty()) { hash = (37 * hash) + ENGINE_ARGS_FIELD_NUMBER; hash = (53 * hash) + internalGetEngineArgs().hashCode(); } if (!internalGetAsyncEngineArgs().getMap().isEmpty()) { hash = (37 * hash) + ASYNC_ENGINE_ARGS_FIELD_NUMBER; hash = (53 * hash) + internalGetAsyncEngineArgs().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.TrinoSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.TrinoSource 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.graph.v1.TrinoSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.TrinoSource 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.graph.v1.TrinoSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.TrinoSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.TrinoSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.TrinoSource 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.graph.v1.TrinoSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.TrinoSource 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.graph.v1.TrinoSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.TrinoSource 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.graph.v1.TrinoSource 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.graph.v1.TrinoSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.TrinoSource) ai.chalk.protos.chalk.graph.v1.TrinoSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_TrinoSource_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 8: return internalGetEngineArgs(); case 9: return internalGetAsyncEngineArgs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 8: return internalGetMutableEngineArgs(); case 9: return internalGetMutableAsyncEngineArgs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_TrinoSource_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.TrinoSource.class, ai.chalk.protos.chalk.graph.v1.TrinoSource.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.TrinoSource.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; host_ = ""; port_ = ""; catalog_ = ""; schema_ = ""; user_ = ""; password_ = ""; internalGetMutableEngineArgs().clear(); internalGetMutableAsyncEngineArgs().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.SourcesProto.internal_static_chalk_graph_v1_TrinoSource_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.TrinoSource getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.TrinoSource.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.TrinoSource build() { ai.chalk.protos.chalk.graph.v1.TrinoSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.TrinoSource buildPartial() { ai.chalk.protos.chalk.graph.v1.TrinoSource result = new ai.chalk.protos.chalk.graph.v1.TrinoSource(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.TrinoSource result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.host_ = host_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.port_ = port_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.catalog_ = catalog_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.schema_ = schema_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.user_ = user_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.password_ = password_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.engineArgs_ = internalGetEngineArgs().build(EngineArgsDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000100) != 0)) { result.asyncEngineArgs_ = internalGetAsyncEngineArgs().build(AsyncEngineArgsDefaultEntryHolder.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.graph.v1.TrinoSource) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.TrinoSource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.TrinoSource other) { if (other == ai.chalk.protos.chalk.graph.v1.TrinoSource.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getHost().isEmpty()) { host_ = other.host_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getPort().isEmpty()) { port_ = other.port_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getSchema().isEmpty()) { schema_ = other.schema_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getUser().isEmpty()) { user_ = other.user_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getPassword().isEmpty()) { password_ = other.password_; bitField0_ |= 0x00000040; onChanged(); } internalGetMutableEngineArgs().mergeFrom( other.internalGetEngineArgs()); bitField0_ |= 0x00000080; internalGetMutableAsyncEngineArgs().mergeFrom( other.internalGetAsyncEngineArgs()); bitField0_ |= 0x00000100; 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: { host_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { port_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { catalog_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { schema_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { user_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { password_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> engineArgs__ = input.readMessage( EngineArgsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableEngineArgs().ensureBuilderMap().put( engineArgs__.getKey(), engineArgs__.getValue()); bitField0_ |= 0x00000080; break; } // case 66 case 74: { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> asyncEngineArgs__ = input.readMessage( AsyncEngineArgsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAsyncEngineArgs().ensureBuilderMap().put( asyncEngineArgs__.getKey(), asyncEngineArgs__.getValue()); 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 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 host_ = ""; /** * <code>string host = 2 [json_name = "host"];</code> * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string host = 2 [json_name = "host"];</code> * @return The bytes for host. */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string host = 2 [json_name = "host"];</code> * @param value The host to set. * @return This builder for chaining. */ public Builder setHost( java.lang.String value) { if (value == null) { throw new NullPointerException(); } host_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>string host = 2 [json_name = "host"];</code> * @return This builder for chaining. */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string host = 2 [json_name = "host"];</code> * @param value The bytes for host to set. * @return This builder for chaining. */ public Builder setHostBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object port_ = ""; /** * <code>string port = 3 [json_name = "port"];</code> * @return The port. */ public java.lang.String getPort() { java.lang.Object ref = port_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); port_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string port = 3 [json_name = "port"];</code> * @return The bytes for port. */ public com.google.protobuf.ByteString getPortBytes() { java.lang.Object ref = port_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); port_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string port = 3 [json_name = "port"];</code> * @param value The port to set. * @return This builder for chaining. */ public Builder setPort( java.lang.String value) { if (value == null) { throw new NullPointerException(); } port_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>string port = 3 [json_name = "port"];</code> * @return This builder for chaining. */ public Builder clearPort() { port_ = getDefaultInstance().getPort(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>string port = 3 [json_name = "port"];</code> * @param value The bytes for port to set. * @return This builder for chaining. */ public Builder setPortBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); port_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object catalog_ = ""; /** * <code>string catalog = 4 [json_name = "catalog"];</code> * @return The catalog. */ public java.lang.String getCatalog() { java.lang.Object ref = catalog_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); catalog_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string catalog = 4 [json_name = "catalog"];</code> * @return The bytes for catalog. */ public com.google.protobuf.ByteString getCatalogBytes() { java.lang.Object ref = catalog_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalog_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string catalog = 4 [json_name = "catalog"];</code> * @param value The catalog to set. * @return This builder for chaining. */ public Builder setCatalog( java.lang.String value) { if (value == null) { throw new NullPointerException(); } catalog_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>string catalog = 4 [json_name = "catalog"];</code> * @return This builder for chaining. */ public Builder clearCatalog() { catalog_ = getDefaultInstance().getCatalog(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * <code>string catalog = 4 [json_name = "catalog"];</code> * @param value The bytes for catalog to set. * @return This builder for chaining. */ public Builder setCatalogBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); catalog_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object schema_ = ""; /** * <code>string schema = 5 [json_name = "schema"];</code> * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string schema = 5 [json_name = "schema"];</code> * @return The bytes for schema. */ public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schema_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string schema = 5 [json_name = "schema"];</code> * @param value The schema to set. * @return This builder for chaining. */ public Builder setSchema( java.lang.String value) { if (value == null) { throw new NullPointerException(); } schema_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>string schema = 5 [json_name = "schema"];</code> * @return This builder for chaining. */ public Builder clearSchema() { schema_ = getDefaultInstance().getSchema(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * <code>string schema = 5 [json_name = "schema"];</code> * @param value The bytes for schema to set. * @return This builder for chaining. */ public Builder setSchemaBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object user_ = ""; /** * <code>string user = 6 [json_name = "user"];</code> * @return The user. */ public java.lang.String getUser() { java.lang.Object ref = user_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); user_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string user = 6 [json_name = "user"];</code> * @return The bytes for user. */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string user = 6 [json_name = "user"];</code> * @param value The user to set. * @return This builder for chaining. */ public Builder setUser( java.lang.String value) { if (value == null) { throw new NullPointerException(); } user_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>string user = 6 [json_name = "user"];</code> * @return This builder for chaining. */ public Builder clearUser() { user_ = getDefaultInstance().getUser(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * <code>string user = 6 [json_name = "user"];</code> * @param value The bytes for user to set. * @return This builder for chaining. */ public Builder setUserBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); user_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object password_ = ""; /** * <code>string password = 7 [json_name = "password"];</code> * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string password = 7 [json_name = "password"];</code> * @return The bytes for password. */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string password = 7 [json_name = "password"];</code> * @param value The password to set. * @return This builder for chaining. */ public Builder setPassword( java.lang.String value) { if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * <code>string password = 7 [json_name = "password"];</code> * @return This builder for chaining. */ public Builder clearPassword() { password_ = getDefaultInstance().getPassword(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * <code>string password = 7 [json_name = "password"];</code> * @param value The bytes for password to set. * @return This builder for chaining. */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private static final class EngineArgsConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue> { @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue build(ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder val) { if (val instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { return (ai.chalk.protos.chalk.arrow.v1.ScalarValue) val; } return ((ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry() { return EngineArgsDefaultEntryHolder.defaultEntry; } }; private static final EngineArgsConverter engineArgsConverter = new EngineArgsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> engineArgs_; private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetEngineArgs() { if (engineArgs_ == null) { return new com.google.protobuf.MapFieldBuilder<>(engineArgsConverter); } return engineArgs_; } private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetMutableEngineArgs() { if (engineArgs_ == null) { engineArgs_ = new com.google.protobuf.MapFieldBuilder<>(engineArgsConverter); } bitField0_ |= 0x00000080; onChanged(); return engineArgs_; } public int getEngineArgsCount() { return internalGetEngineArgs().ensureBuilderMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ @java.lang.Override public boolean containsEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetEngineArgs().ensureBuilderMap().containsKey(key); } /** * Use {@link #getEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgs() { return getEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgsMap() { return internalGetEngineArgs().getImmutableMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableEngineArgs().ensureBuilderMap(); return map.containsKey(key) ? engineArgsConverter.build(map.get(key)) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableEngineArgs().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return engineArgsConverter.build(map.get(key)); } public Builder clearEngineArgs() { bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableEngineArgs().clear(); return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ public Builder removeEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableEngineArgs().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getMutableEngineArgs() { bitField0_ |= 0x00000080; return internalGetMutableEngineArgs().ensureMessageMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ public Builder putEngineArgs( java.lang.String key, ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableEngineArgs().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000080; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ public Builder putAllEngineArgs( java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> values) { for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableEngineArgs().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000080; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder putEngineArgsBuilderIfAbsent( java.lang.String key) { java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> builderMap = internalGetMutableEngineArgs().ensureBuilderMap(); ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder entry = builderMap.get(key); if (entry == null) { entry = ai.chalk.protos.chalk.arrow.v1.ScalarValue.newBuilder(); builderMap.put(key, entry); } if (entry instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { entry = ((ai.chalk.protos.chalk.arrow.v1.ScalarValue) entry).toBuilder(); builderMap.put(key, entry); } return (ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder) entry; } private static final class AsyncEngineArgsConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue> { @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue build(ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder val) { if (val instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { return (ai.chalk.protos.chalk.arrow.v1.ScalarValue) val; } return ((ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> defaultEntry() { return AsyncEngineArgsDefaultEntryHolder.defaultEntry; } }; private static final AsyncEngineArgsConverter asyncEngineArgsConverter = new AsyncEngineArgsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> asyncEngineArgs_; private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetAsyncEngineArgs() { if (asyncEngineArgs_ == null) { return new com.google.protobuf.MapFieldBuilder<>(asyncEngineArgsConverter); } return asyncEngineArgs_; } private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder, ai.chalk.protos.chalk.arrow.v1.ScalarValue, ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder> internalGetMutableAsyncEngineArgs() { if (asyncEngineArgs_ == null) { asyncEngineArgs_ = new com.google.protobuf.MapFieldBuilder<>(asyncEngineArgsConverter); } bitField0_ |= 0x00000100; onChanged(); return asyncEngineArgs_; } public int getAsyncEngineArgsCount() { return internalGetAsyncEngineArgs().ensureBuilderMap().size(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public boolean containsAsyncEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAsyncEngineArgs().ensureBuilderMap().containsKey(key); } /** * Use {@link #getAsyncEngineArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgs() { return getAsyncEngineArgsMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgsMap() { return internalGetAsyncEngineArgs().getImmutableMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableAsyncEngineArgs().ensureBuilderMap(); return map.containsKey(key) ? asyncEngineArgsConverter.build(map.get(key)) : defaultValue; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> map = internalGetMutableAsyncEngineArgs().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return asyncEngineArgsConverter.build(map.get(key)); } public Builder clearAsyncEngineArgs() { bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableAsyncEngineArgs().clear(); return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ public Builder removeAsyncEngineArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAsyncEngineArgs().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getMutableAsyncEngineArgs() { bitField0_ |= 0x00000100; return internalGetMutableAsyncEngineArgs().ensureMessageMap(); } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ public Builder putAsyncEngineArgs( java.lang.String key, ai.chalk.protos.chalk.arrow.v1.ScalarValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAsyncEngineArgs().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000100; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ public Builder putAllAsyncEngineArgs( java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> values) { for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableAsyncEngineArgs().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000100; return this; } /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ScalarValue.Builder putAsyncEngineArgsBuilderIfAbsent( java.lang.String key) { java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder> builderMap = internalGetMutableAsyncEngineArgs().ensureBuilderMap(); ai.chalk.protos.chalk.arrow.v1.ScalarValueOrBuilder entry = builderMap.get(key); if (entry == null) { entry = ai.chalk.protos.chalk.arrow.v1.ScalarValue.newBuilder(); builderMap.put(key, entry); } if (entry instanceof ai.chalk.protos.chalk.arrow.v1.ScalarValue) { entry = ((ai.chalk.protos.chalk.arrow.v1.ScalarValue) entry).toBuilder(); builderMap.put(key, entry); } return (ai.chalk.protos.chalk.arrow.v1.ScalarValue.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.graph.v1.TrinoSource) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.TrinoSource) private static final ai.chalk.protos.chalk.graph.v1.TrinoSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.TrinoSource(); } public static ai.chalk.protos.chalk.graph.v1.TrinoSource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<TrinoSource> PARSER = new com.google.protobuf.AbstractParser<TrinoSource>() { @java.lang.Override public TrinoSource 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<TrinoSource> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<TrinoSource> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.TrinoSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/TrinoSourceOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/sources.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface TrinoSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.TrinoSource) 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 host = 2 [json_name = "host"];</code> * @return The host. */ java.lang.String getHost(); /** * <code>string host = 2 [json_name = "host"];</code> * @return The bytes for host. */ com.google.protobuf.ByteString getHostBytes(); /** * <code>string port = 3 [json_name = "port"];</code> * @return The port. */ java.lang.String getPort(); /** * <code>string port = 3 [json_name = "port"];</code> * @return The bytes for port. */ com.google.protobuf.ByteString getPortBytes(); /** * <code>string catalog = 4 [json_name = "catalog"];</code> * @return The catalog. */ java.lang.String getCatalog(); /** * <code>string catalog = 4 [json_name = "catalog"];</code> * @return The bytes for catalog. */ com.google.protobuf.ByteString getCatalogBytes(); /** * <code>string schema = 5 [json_name = "schema"];</code> * @return The schema. */ java.lang.String getSchema(); /** * <code>string schema = 5 [json_name = "schema"];</code> * @return The bytes for schema. */ com.google.protobuf.ByteString getSchemaBytes(); /** * <code>string user = 6 [json_name = "user"];</code> * @return The user. */ java.lang.String getUser(); /** * <code>string user = 6 [json_name = "user"];</code> * @return The bytes for user. */ com.google.protobuf.ByteString getUserBytes(); /** * <code>string password = 7 [json_name = "password"];</code> * @return The password. */ java.lang.String getPassword(); /** * <code>string password = 7 [json_name = "password"];</code> * @return The bytes for password. */ com.google.protobuf.ByteString getPasswordBytes(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ int getEngineArgsCount(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ boolean containsEngineArgs( java.lang.String key); /** * Use {@link #getEngineArgsMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgs(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getEngineArgsMap(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; engine_args = 8 [json_name = "engineArgs"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getEngineArgsOrThrow( java.lang.String key); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ int getAsyncEngineArgsCount(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ boolean containsAsyncEngineArgs( java.lang.String key); /** * Use {@link #getAsyncEngineArgsMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgs(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ java.util.Map<java.lang.String, ai.chalk.protos.chalk.arrow.v1.ScalarValue> getAsyncEngineArgsMap(); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.arrow.v1.ScalarValue defaultValue); /** * <code>map&lt;string, .chalk.arrow.v1.ScalarValue&gt; async_engine_args = 9 [json_name = "asyncEngineArgs"];</code> */ ai.chalk.protos.chalk.arrow.v1.ScalarValue getAsyncEngineArgsOrThrow( java.lang.String key); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/VersionInfo.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.VersionInfo} */ public final class VersionInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.VersionInfo) VersionInfoOrBuilder { private static final long serialVersionUID = 0L; // Use VersionInfo.newBuilder() to construct. private VersionInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private VersionInfo() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VersionInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_VersionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_VersionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.VersionInfo.class, ai.chalk.protos.chalk.graph.v1.VersionInfo.Builder.class); } public static final int DEFAULT_FIELD_NUMBER = 1; private int default_ = 0; /** * <code>uint32 default = 1 [json_name = "default"];</code> * @return The default. */ @java.lang.Override public int getDefault() { return default_; } public static final int MAXIMUM_FIELD_NUMBER = 2; private int maximum_ = 0; /** * <code>uint32 maximum = 2 [json_name = "maximum"];</code> * @return The maximum. */ @java.lang.Override public int getMaximum() { return maximum_; } 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 (default_ != 0) { output.writeUInt32(1, default_); } if (maximum_ != 0) { output.writeUInt32(2, maximum_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (default_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, default_); } if (maximum_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, maximum_); } 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.graph.v1.VersionInfo)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.VersionInfo other = (ai.chalk.protos.chalk.graph.v1.VersionInfo) obj; if (getDefault() != other.getDefault()) return false; if (getMaximum() != other.getMaximum()) 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) + DEFAULT_FIELD_NUMBER; hash = (53 * hash) + getDefault(); hash = (37 * hash) + MAXIMUM_FIELD_NUMBER; hash = (53 * hash) + getMaximum(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.VersionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.VersionInfo 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.graph.v1.VersionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.VersionInfo 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.graph.v1.VersionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.VersionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.VersionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.VersionInfo 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.graph.v1.VersionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.VersionInfo 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.graph.v1.VersionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.VersionInfo 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.graph.v1.VersionInfo 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.graph.v1.VersionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.VersionInfo) ai.chalk.protos.chalk.graph.v1.VersionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_VersionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_VersionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.VersionInfo.class, ai.chalk.protos.chalk.graph.v1.VersionInfo.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.VersionInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; default_ = 0; maximum_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_VersionInfo_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.VersionInfo getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.VersionInfo.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.VersionInfo build() { ai.chalk.protos.chalk.graph.v1.VersionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.VersionInfo buildPartial() { ai.chalk.protos.chalk.graph.v1.VersionInfo result = new ai.chalk.protos.chalk.graph.v1.VersionInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.VersionInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.default_ = default_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.maximum_ = maximum_; } } @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.graph.v1.VersionInfo) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.VersionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.VersionInfo other) { if (other == ai.chalk.protos.chalk.graph.v1.VersionInfo.getDefaultInstance()) return this; if (other.getDefault() != 0) { setDefault(other.getDefault()); } if (other.getMaximum() != 0) { setMaximum(other.getMaximum()); } 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: { default_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { maximum_ = input.readUInt32(); bitField0_ |= 0x00000002; break; } // case 16 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 default_ ; /** * <code>uint32 default = 1 [json_name = "default"];</code> * @return The default. */ @java.lang.Override public int getDefault() { return default_; } /** * <code>uint32 default = 1 [json_name = "default"];</code> * @param value The default to set. * @return This builder for chaining. */ public Builder setDefault(int value) { default_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>uint32 default = 1 [json_name = "default"];</code> * @return This builder for chaining. */ public Builder clearDefault() { bitField0_ = (bitField0_ & ~0x00000001); default_ = 0; onChanged(); return this; } private int maximum_ ; /** * <code>uint32 maximum = 2 [json_name = "maximum"];</code> * @return The maximum. */ @java.lang.Override public int getMaximum() { return maximum_; } /** * <code>uint32 maximum = 2 [json_name = "maximum"];</code> * @param value The maximum to set. * @return This builder for chaining. */ public Builder setMaximum(int value) { maximum_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>uint32 maximum = 2 [json_name = "maximum"];</code> * @return This builder for chaining. */ public Builder clearMaximum() { bitField0_ = (bitField0_ & ~0x00000002); maximum_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.graph.v1.VersionInfo) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.VersionInfo) private static final ai.chalk.protos.chalk.graph.v1.VersionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.VersionInfo(); } public static ai.chalk.protos.chalk.graph.v1.VersionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<VersionInfo> PARSER = new com.google.protobuf.AbstractParser<VersionInfo>() { @java.lang.Override public VersionInfo 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<VersionInfo> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<VersionInfo> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.VersionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/VersionInfoOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface VersionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.VersionInfo) com.google.protobuf.MessageOrBuilder { /** * <code>uint32 default = 1 [json_name = "default"];</code> * @return The default. */ int getDefault(); /** * <code>uint32 maximum = 2 [json_name = "maximum"];</code> * @return The maximum. */ int getMaximum(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/WindowAggregation.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.WindowAggregation} */ public final class WindowAggregation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.WindowAggregation) WindowAggregationOrBuilder { private static final long serialVersionUID = 0L; // Use WindowAggregation.newBuilder() to construct. private WindowAggregation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private WindowAggregation() { namespace_ = ""; groupBy_ = java.util.Collections.emptyList(); aggregation_ = ""; filters_ = java.util.Collections.emptyList(); backfillResolver_ = ""; continuousResolver_ = ""; backfillSchedule_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WindowAggregation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_WindowAggregation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_WindowAggregation_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.WindowAggregation.class, ai.chalk.protos.chalk.graph.v1.WindowAggregation.Builder.class); } private int bitField0_; public static final int NAMESPACE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; /** * <code>string namespace = 1 [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 = 1 [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 GROUP_BY_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureReference> groupBy_; /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureReference> getGroupByList() { return groupBy_; } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder> getGroupByOrBuilderList() { return groupBy_; } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ @java.lang.Override public int getGroupByCount() { return groupBy_.size(); } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureReference getGroupBy(int index) { return groupBy_.get(index); } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getGroupByOrBuilder( int index) { return groupBy_.get(index); } public static final int BUCKET_DURATION_FIELD_NUMBER = 3; private com.google.protobuf.Duration bucketDuration_; /** * <code>.google.protobuf.Duration bucket_duration = 3 [json_name = "bucketDuration"];</code> * @return Whether the bucketDuration field is set. */ @java.lang.Override public boolean hasBucketDuration() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.google.protobuf.Duration bucket_duration = 3 [json_name = "bucketDuration"];</code> * @return The bucketDuration. */ @java.lang.Override public com.google.protobuf.Duration getBucketDuration() { return bucketDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : bucketDuration_; } /** * <code>.google.protobuf.Duration bucket_duration = 3 [json_name = "bucketDuration"];</code> */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getBucketDurationOrBuilder() { return bucketDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : bucketDuration_; } public static final int AGGREGATION_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object aggregation_ = ""; /** * <code>string aggregation = 4 [json_name = "aggregation"];</code> * @return The aggregation. */ @java.lang.Override public java.lang.String getAggregation() { java.lang.Object ref = aggregation_; 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(); aggregation_ = s; return s; } } /** * <code>string aggregation = 4 [json_name = "aggregation"];</code> * @return The bytes for aggregation. */ @java.lang.Override public com.google.protobuf.ByteString getAggregationBytes() { java.lang.Object ref = aggregation_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aggregation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AGGREGATE_ON_FIELD_NUMBER = 5; private ai.chalk.protos.chalk.graph.v1.FeatureReference aggregateOn_; /** * <code>optional .chalk.graph.v1.FeatureReference aggregate_on = 5 [json_name = "aggregateOn"];</code> * @return Whether the aggregateOn field is set. */ @java.lang.Override public boolean hasAggregateOn() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>optional .chalk.graph.v1.FeatureReference aggregate_on = 5 [json_name = "aggregateOn"];</code> * @return The aggregateOn. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureReference getAggregateOn() { return aggregateOn_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : aggregateOn_; } /** * <code>optional .chalk.graph.v1.FeatureReference aggregate_on = 5 [json_name = "aggregateOn"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getAggregateOnOrBuilder() { return aggregateOn_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : aggregateOn_; } public static final int ARROW_TYPE_FIELD_NUMBER = 6; private ai.chalk.protos.chalk.arrow.v1.ArrowType arrowType_; /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 6 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ @java.lang.Override public boolean hasArrowType() { return ((bitField0_ & 0x00000004) != 0); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 6 [json_name = "arrowType"];</code> * @return The arrowType. */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType() { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 6 [json_name = "arrowType"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder() { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } public static final int FILTERS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.expression.v1.LogicalExprNode> filters_; /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.expression.v1.LogicalExprNode> getFiltersList() { return filters_; } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder> getFiltersOrBuilderList() { return filters_; } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ @java.lang.Override public int getFiltersCount() { return filters_.size(); } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.expression.v1.LogicalExprNode getFilters(int index) { return filters_.get(index); } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder getFiltersOrBuilder( int index) { return filters_.get(index); } public static final int BACKFILL_RESOLVER_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object backfillResolver_ = ""; /** * <pre> * The resolver to use for back-filling the materialized aggregate. * If not provided, the data will be back filled using the resolver * that would run for an offline query. * </pre> * * <code>optional string backfill_resolver = 8 [json_name = "backfillResolver"];</code> * @return Whether the backfillResolver field is set. */ @java.lang.Override public boolean hasBackfillResolver() { return ((bitField0_ & 0x00000008) != 0); } /** * <pre> * The resolver to use for back-filling the materialized aggregate. * If not provided, the data will be back filled using the resolver * that would run for an offline query. * </pre> * * <code>optional string backfill_resolver = 8 [json_name = "backfillResolver"];</code> * @return The backfillResolver. */ @java.lang.Override public java.lang.String getBackfillResolver() { java.lang.Object ref = backfillResolver_; 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(); backfillResolver_ = s; return s; } } /** * <pre> * The resolver to use for back-filling the materialized aggregate. * If not provided, the data will be back filled using the resolver * that would run for an offline query. * </pre> * * <code>optional string backfill_resolver = 8 [json_name = "backfillResolver"];</code> * @return The bytes for backfillResolver. */ @java.lang.Override public com.google.protobuf.ByteString getBackfillResolverBytes() { java.lang.Object ref = backfillResolver_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); backfillResolver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BACKFILL_LOOKBACK_DURATION_FIELD_NUMBER = 9; private com.google.protobuf.Duration backfillLookbackDuration_; /** * <pre> * The amount of time before the start of the previous backfill * to consider when running the backfill resolver. Set this parameter * to the be equal to the latest arriving data in the backfill window. * </pre> * * <code>optional .google.protobuf.Duration backfill_lookback_duration = 9 [json_name = "backfillLookbackDuration"];</code> * @return Whether the backfillLookbackDuration field is set. */ @java.lang.Override public boolean hasBackfillLookbackDuration() { return ((bitField0_ & 0x00000010) != 0); } /** * <pre> * The amount of time before the start of the previous backfill * to consider when running the backfill resolver. Set this parameter * to the be equal to the latest arriving data in the backfill window. * </pre> * * <code>optional .google.protobuf.Duration backfill_lookback_duration = 9 [json_name = "backfillLookbackDuration"];</code> * @return The backfillLookbackDuration. */ @java.lang.Override public com.google.protobuf.Duration getBackfillLookbackDuration() { return backfillLookbackDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : backfillLookbackDuration_; } /** * <pre> * The amount of time before the start of the previous backfill * to consider when running the backfill resolver. Set this parameter * to the be equal to the latest arriving data in the backfill window. * </pre> * * <code>optional .google.protobuf.Duration backfill_lookback_duration = 9 [json_name = "backfillLookbackDuration"];</code> */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getBackfillLookbackDurationOrBuilder() { return backfillLookbackDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : backfillLookbackDuration_; } public static final int BACKFILL_START_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp backfillStartTime_; /** * <pre> * The time at which to start back filling the materialized aggregate. * If not provided, the backfill consider the earliest available data returned * by the `backfill_resolver`. * </pre> * * <code>optional .google.protobuf.Timestamp backfill_start_time = 10 [json_name = "backfillStartTime"];</code> * @return Whether the backfillStartTime field is set. */ @java.lang.Override public boolean hasBackfillStartTime() { return ((bitField0_ & 0x00000020) != 0); } /** * <pre> * The time at which to start back filling the materialized aggregate. * If not provided, the backfill consider the earliest available data returned * by the `backfill_resolver`. * </pre> * * <code>optional .google.protobuf.Timestamp backfill_start_time = 10 [json_name = "backfillStartTime"];</code> * @return The backfillStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getBackfillStartTime() { return backfillStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : backfillStartTime_; } /** * <pre> * The time at which to start back filling the materialized aggregate. * If not provided, the backfill consider the earliest available data returned * by the `backfill_resolver`. * </pre> * * <code>optional .google.protobuf.Timestamp backfill_start_time = 10 [json_name = "backfillStartTime"];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getBackfillStartTimeOrBuilder() { return backfillStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : backfillStartTime_; } public static final int CONTINUOUS_RESOLVER_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object continuousResolver_ = ""; /** * <pre> * The resolver to use for continuous updates to the materialized aggregate. * If not provided, the data will be updated using the resolver that would run * for an online query. * </pre> * * <code>optional string continuous_resolver = 11 [json_name = "continuousResolver"];</code> * @return Whether the continuousResolver field is set. */ @java.lang.Override public boolean hasContinuousResolver() { return ((bitField0_ & 0x00000040) != 0); } /** * <pre> * The resolver to use for continuous updates to the materialized aggregate. * If not provided, the data will be updated using the resolver that would run * for an online query. * </pre> * * <code>optional string continuous_resolver = 11 [json_name = "continuousResolver"];</code> * @return The continuousResolver. */ @java.lang.Override public java.lang.String getContinuousResolver() { java.lang.Object ref = continuousResolver_; 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(); continuousResolver_ = s; return s; } } /** * <pre> * The resolver to use for continuous updates to the materialized aggregate. * If not provided, the data will be updated using the resolver that would run * for an online query. * </pre> * * <code>optional string continuous_resolver = 11 [json_name = "continuousResolver"];</code> * @return The bytes for continuousResolver. */ @java.lang.Override public com.google.protobuf.ByteString getContinuousResolverBytes() { java.lang.Object ref = continuousResolver_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); continuousResolver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTINUOUS_BUFFER_DURATION_FIELD_NUMBER = 12; private com.google.protobuf.Duration continuousBufferDuration_; /** * <pre> * The period for which to use the continuous resolver, instead * of relying upon the last backfill. If not provided, and a continuous * resolver is provided, this will be set to backfill_lookback_duration. * </pre> * * <code>optional .google.protobuf.Duration continuous_buffer_duration = 12 [json_name = "continuousBufferDuration"];</code> * @return Whether the continuousBufferDuration field is set. */ @java.lang.Override public boolean hasContinuousBufferDuration() { return ((bitField0_ & 0x00000080) != 0); } /** * <pre> * The period for which to use the continuous resolver, instead * of relying upon the last backfill. If not provided, and a continuous * resolver is provided, this will be set to backfill_lookback_duration. * </pre> * * <code>optional .google.protobuf.Duration continuous_buffer_duration = 12 [json_name = "continuousBufferDuration"];</code> * @return The continuousBufferDuration. */ @java.lang.Override public com.google.protobuf.Duration getContinuousBufferDuration() { return continuousBufferDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : continuousBufferDuration_; } /** * <pre> * The period for which to use the continuous resolver, instead * of relying upon the last backfill. If not provided, and a continuous * resolver is provided, this will be set to backfill_lookback_duration. * </pre> * * <code>optional .google.protobuf.Duration continuous_buffer_duration = 12 [json_name = "continuousBufferDuration"];</code> */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getContinuousBufferDurationOrBuilder() { return continuousBufferDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : continuousBufferDuration_; } public static final int BACKFILL_SCHEDULE_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object backfillSchedule_ = ""; /** * <pre> * A crontab or duration string to specify the schedule for back filling the * materialized aggregate. * </pre> * * <code>optional string backfill_schedule = 13 [json_name = "backfillSchedule"];</code> * @return Whether the backfillSchedule field is set. */ @java.lang.Override public boolean hasBackfillSchedule() { return ((bitField0_ & 0x00000100) != 0); } /** * <pre> * A crontab or duration string to specify the schedule for back filling the * materialized aggregate. * </pre> * * <code>optional string backfill_schedule = 13 [json_name = "backfillSchedule"];</code> * @return The backfillSchedule. */ @java.lang.Override public java.lang.String getBackfillSchedule() { java.lang.Object ref = backfillSchedule_; 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(); backfillSchedule_ = s; return s; } } /** * <pre> * A crontab or duration string to specify the schedule for back filling the * materialized aggregate. * </pre> * * <code>optional string backfill_schedule = 13 [json_name = "backfillSchedule"];</code> * @return The bytes for backfillSchedule. */ @java.lang.Override public com.google.protobuf.ByteString getBackfillScheduleBytes() { java.lang.Object ref = backfillSchedule_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); backfillSchedule_ = 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(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); } for (int i = 0; i < groupBy_.size(); i++) { output.writeMessage(2, groupBy_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getBucketDuration()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(aggregation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, aggregation_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getAggregateOn()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getArrowType()); } for (int i = 0; i < filters_.size(); i++) { output.writeMessage(7, filters_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, backfillResolver_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(9, getBackfillLookbackDuration()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(10, getBackfillStartTime()); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, continuousResolver_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(12, getContinuousBufferDuration()); } if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, backfillSchedule_); } 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(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); } for (int i = 0; i < groupBy_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, groupBy_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getBucketDuration()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(aggregation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, aggregation_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getAggregateOn()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getArrowType()); } for (int i = 0; i < filters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, filters_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, backfillResolver_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getBackfillLookbackDuration()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getBackfillStartTime()); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, continuousResolver_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getContinuousBufferDuration()); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, backfillSchedule_); } 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.graph.v1.WindowAggregation)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.WindowAggregation other = (ai.chalk.protos.chalk.graph.v1.WindowAggregation) obj; if (!getNamespace() .equals(other.getNamespace())) return false; if (!getGroupByList() .equals(other.getGroupByList())) return false; if (hasBucketDuration() != other.hasBucketDuration()) return false; if (hasBucketDuration()) { if (!getBucketDuration() .equals(other.getBucketDuration())) return false; } if (!getAggregation() .equals(other.getAggregation())) return false; if (hasAggregateOn() != other.hasAggregateOn()) return false; if (hasAggregateOn()) { if (!getAggregateOn() .equals(other.getAggregateOn())) return false; } if (hasArrowType() != other.hasArrowType()) return false; if (hasArrowType()) { if (!getArrowType() .equals(other.getArrowType())) return false; } if (!getFiltersList() .equals(other.getFiltersList())) return false; if (hasBackfillResolver() != other.hasBackfillResolver()) return false; if (hasBackfillResolver()) { if (!getBackfillResolver() .equals(other.getBackfillResolver())) return false; } if (hasBackfillLookbackDuration() != other.hasBackfillLookbackDuration()) return false; if (hasBackfillLookbackDuration()) { if (!getBackfillLookbackDuration() .equals(other.getBackfillLookbackDuration())) return false; } if (hasBackfillStartTime() != other.hasBackfillStartTime()) return false; if (hasBackfillStartTime()) { if (!getBackfillStartTime() .equals(other.getBackfillStartTime())) return false; } if (hasContinuousResolver() != other.hasContinuousResolver()) return false; if (hasContinuousResolver()) { if (!getContinuousResolver() .equals(other.getContinuousResolver())) return false; } if (hasContinuousBufferDuration() != other.hasContinuousBufferDuration()) return false; if (hasContinuousBufferDuration()) { if (!getContinuousBufferDuration() .equals(other.getContinuousBufferDuration())) return false; } if (hasBackfillSchedule() != other.hasBackfillSchedule()) return false; if (hasBackfillSchedule()) { if (!getBackfillSchedule() .equals(other.getBackfillSchedule())) 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) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); if (getGroupByCount() > 0) { hash = (37 * hash) + GROUP_BY_FIELD_NUMBER; hash = (53 * hash) + getGroupByList().hashCode(); } if (hasBucketDuration()) { hash = (37 * hash) + BUCKET_DURATION_FIELD_NUMBER; hash = (53 * hash) + getBucketDuration().hashCode(); } hash = (37 * hash) + AGGREGATION_FIELD_NUMBER; hash = (53 * hash) + getAggregation().hashCode(); if (hasAggregateOn()) { hash = (37 * hash) + AGGREGATE_ON_FIELD_NUMBER; hash = (53 * hash) + getAggregateOn().hashCode(); } if (hasArrowType()) { hash = (37 * hash) + ARROW_TYPE_FIELD_NUMBER; hash = (53 * hash) + getArrowType().hashCode(); } if (getFiltersCount() > 0) { hash = (37 * hash) + FILTERS_FIELD_NUMBER; hash = (53 * hash) + getFiltersList().hashCode(); } if (hasBackfillResolver()) { hash = (37 * hash) + BACKFILL_RESOLVER_FIELD_NUMBER; hash = (53 * hash) + getBackfillResolver().hashCode(); } if (hasBackfillLookbackDuration()) { hash = (37 * hash) + BACKFILL_LOOKBACK_DURATION_FIELD_NUMBER; hash = (53 * hash) + getBackfillLookbackDuration().hashCode(); } if (hasBackfillStartTime()) { hash = (37 * hash) + BACKFILL_START_TIME_FIELD_NUMBER; hash = (53 * hash) + getBackfillStartTime().hashCode(); } if (hasContinuousResolver()) { hash = (37 * hash) + CONTINUOUS_RESOLVER_FIELD_NUMBER; hash = (53 * hash) + getContinuousResolver().hashCode(); } if (hasContinuousBufferDuration()) { hash = (37 * hash) + CONTINUOUS_BUFFER_DURATION_FIELD_NUMBER; hash = (53 * hash) + getContinuousBufferDuration().hashCode(); } if (hasBackfillSchedule()) { hash = (37 * hash) + BACKFILL_SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getBackfillSchedule().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.WindowAggregation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.WindowAggregation 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.graph.v1.WindowAggregation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.WindowAggregation 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.graph.v1.WindowAggregation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.WindowAggregation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.WindowAggregation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.WindowAggregation 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.graph.v1.WindowAggregation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.WindowAggregation 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.graph.v1.WindowAggregation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.WindowAggregation 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.graph.v1.WindowAggregation 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.graph.v1.WindowAggregation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.WindowAggregation) ai.chalk.protos.chalk.graph.v1.WindowAggregationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_WindowAggregation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_WindowAggregation_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.WindowAggregation.class, ai.chalk.protos.chalk.graph.v1.WindowAggregation.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.WindowAggregation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getGroupByFieldBuilder(); getBucketDurationFieldBuilder(); getAggregateOnFieldBuilder(); getArrowTypeFieldBuilder(); getFiltersFieldBuilder(); getBackfillLookbackDurationFieldBuilder(); getBackfillStartTimeFieldBuilder(); getContinuousBufferDurationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; namespace_ = ""; if (groupByBuilder_ == null) { groupBy_ = java.util.Collections.emptyList(); } else { groupBy_ = null; groupByBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); bucketDuration_ = null; if (bucketDurationBuilder_ != null) { bucketDurationBuilder_.dispose(); bucketDurationBuilder_ = null; } aggregation_ = ""; aggregateOn_ = null; if (aggregateOnBuilder_ != null) { aggregateOnBuilder_.dispose(); aggregateOnBuilder_ = null; } arrowType_ = null; if (arrowTypeBuilder_ != null) { arrowTypeBuilder_.dispose(); arrowTypeBuilder_ = null; } if (filtersBuilder_ == null) { filters_ = java.util.Collections.emptyList(); } else { filters_ = null; filtersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); backfillResolver_ = ""; backfillLookbackDuration_ = null; if (backfillLookbackDurationBuilder_ != null) { backfillLookbackDurationBuilder_.dispose(); backfillLookbackDurationBuilder_ = null; } backfillStartTime_ = null; if (backfillStartTimeBuilder_ != null) { backfillStartTimeBuilder_.dispose(); backfillStartTimeBuilder_ = null; } continuousResolver_ = ""; continuousBufferDuration_ = null; if (continuousBufferDurationBuilder_ != null) { continuousBufferDurationBuilder_.dispose(); continuousBufferDurationBuilder_ = null; } backfillSchedule_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_WindowAggregation_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowAggregation getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.WindowAggregation.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowAggregation build() { ai.chalk.protos.chalk.graph.v1.WindowAggregation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowAggregation buildPartial() { ai.chalk.protos.chalk.graph.v1.WindowAggregation result = new ai.chalk.protos.chalk.graph.v1.WindowAggregation(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.graph.v1.WindowAggregation result) { if (groupByBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { groupBy_ = java.util.Collections.unmodifiableList(groupBy_); bitField0_ = (bitField0_ & ~0x00000002); } result.groupBy_ = groupBy_; } else { result.groupBy_ = groupByBuilder_.build(); } if (filtersBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { filters_ = java.util.Collections.unmodifiableList(filters_); bitField0_ = (bitField0_ & ~0x00000040); } result.filters_ = filters_; } else { result.filters_ = filtersBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.WindowAggregation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.namespace_ = namespace_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.bucketDuration_ = bucketDurationBuilder_ == null ? bucketDuration_ : bucketDurationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.aggregation_ = aggregation_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.aggregateOn_ = aggregateOnBuilder_ == null ? aggregateOn_ : aggregateOnBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.arrowType_ = arrowTypeBuilder_ == null ? arrowType_ : arrowTypeBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { result.backfillResolver_ = backfillResolver_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000100) != 0)) { result.backfillLookbackDuration_ = backfillLookbackDurationBuilder_ == null ? backfillLookbackDuration_ : backfillLookbackDurationBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000200) != 0)) { result.backfillStartTime_ = backfillStartTimeBuilder_ == null ? backfillStartTime_ : backfillStartTimeBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000400) != 0)) { result.continuousResolver_ = continuousResolver_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000800) != 0)) { result.continuousBufferDuration_ = continuousBufferDurationBuilder_ == null ? continuousBufferDuration_ : continuousBufferDurationBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00001000) != 0)) { result.backfillSchedule_ = backfillSchedule_; 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.graph.v1.WindowAggregation) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.WindowAggregation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.WindowAggregation other) { if (other == ai.chalk.protos.chalk.graph.v1.WindowAggregation.getDefaultInstance()) return this; if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; bitField0_ |= 0x00000001; onChanged(); } if (groupByBuilder_ == null) { if (!other.groupBy_.isEmpty()) { if (groupBy_.isEmpty()) { groupBy_ = other.groupBy_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureGroupByIsMutable(); groupBy_.addAll(other.groupBy_); } onChanged(); } } else { if (!other.groupBy_.isEmpty()) { if (groupByBuilder_.isEmpty()) { groupByBuilder_.dispose(); groupByBuilder_ = null; groupBy_ = other.groupBy_; bitField0_ = (bitField0_ & ~0x00000002); groupByBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGroupByFieldBuilder() : null; } else { groupByBuilder_.addAllMessages(other.groupBy_); } } } if (other.hasBucketDuration()) { mergeBucketDuration(other.getBucketDuration()); } if (!other.getAggregation().isEmpty()) { aggregation_ = other.aggregation_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasAggregateOn()) { mergeAggregateOn(other.getAggregateOn()); } if (other.hasArrowType()) { mergeArrowType(other.getArrowType()); } if (filtersBuilder_ == null) { if (!other.filters_.isEmpty()) { if (filters_.isEmpty()) { filters_ = other.filters_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureFiltersIsMutable(); filters_.addAll(other.filters_); } onChanged(); } } else { if (!other.filters_.isEmpty()) { if (filtersBuilder_.isEmpty()) { filtersBuilder_.dispose(); filtersBuilder_ = null; filters_ = other.filters_; bitField0_ = (bitField0_ & ~0x00000040); filtersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFiltersFieldBuilder() : null; } else { filtersBuilder_.addAllMessages(other.filters_); } } } if (other.hasBackfillResolver()) { backfillResolver_ = other.backfillResolver_; bitField0_ |= 0x00000080; onChanged(); } if (other.hasBackfillLookbackDuration()) { mergeBackfillLookbackDuration(other.getBackfillLookbackDuration()); } if (other.hasBackfillStartTime()) { mergeBackfillStartTime(other.getBackfillStartTime()); } if (other.hasContinuousResolver()) { continuousResolver_ = other.continuousResolver_; bitField0_ |= 0x00000400; onChanged(); } if (other.hasContinuousBufferDuration()) { mergeContinuousBufferDuration(other.getContinuousBufferDuration()); } if (other.hasBackfillSchedule()) { backfillSchedule_ = other.backfillSchedule_; bitField0_ |= 0x00001000; 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: { namespace_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ai.chalk.protos.chalk.graph.v1.FeatureReference m = input.readMessage( ai.chalk.protos.chalk.graph.v1.FeatureReference.parser(), extensionRegistry); if (groupByBuilder_ == null) { ensureGroupByIsMutable(); groupBy_.add(m); } else { groupByBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage( getBucketDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { aggregation_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getAggregateOnFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getArrowTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { ai.chalk.protos.chalk.expression.v1.LogicalExprNode m = input.readMessage( ai.chalk.protos.chalk.expression.v1.LogicalExprNode.parser(), extensionRegistry); if (filtersBuilder_ == null) { ensureFiltersIsMutable(); filters_.add(m); } else { filtersBuilder_.addMessage(m); } break; } // case 58 case 66: { backfillResolver_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage( getBackfillLookbackDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage( getBackfillStartTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 82 case 90: { continuousResolver_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 case 98: { input.readMessage( getContinuousBufferDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 98 case 106: { backfillSchedule_ = input.readStringRequireUtf8(); bitField0_ |= 0x00001000; break; } // case 106 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 namespace_ = ""; /** * <code>string namespace = 1 [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 = 1 [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 = 1 [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_ |= 0x00000001; onChanged(); return this; } /** * <code>string namespace = 1 [json_name = "namespace"];</code> * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string namespace = 1 [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_ |= 0x00000001; onChanged(); return this; } private java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureReference> groupBy_ = java.util.Collections.emptyList(); private void ensureGroupByIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { groupBy_ = new java.util.ArrayList<ai.chalk.protos.chalk.graph.v1.FeatureReference>(groupBy_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder> groupByBuilder_; /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureReference> getGroupByList() { if (groupByBuilder_ == null) { return java.util.Collections.unmodifiableList(groupBy_); } else { return groupByBuilder_.getMessageList(); } } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public int getGroupByCount() { if (groupByBuilder_ == null) { return groupBy_.size(); } else { return groupByBuilder_.getCount(); } } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureReference getGroupBy(int index) { if (groupByBuilder_ == null) { return groupBy_.get(index); } else { return groupByBuilder_.getMessage(index); } } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public Builder setGroupBy( int index, ai.chalk.protos.chalk.graph.v1.FeatureReference value) { if (groupByBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupByIsMutable(); groupBy_.set(index, value); onChanged(); } else { groupByBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public Builder setGroupBy( int index, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder builderForValue) { if (groupByBuilder_ == null) { ensureGroupByIsMutable(); groupBy_.set(index, builderForValue.build()); onChanged(); } else { groupByBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public Builder addGroupBy(ai.chalk.protos.chalk.graph.v1.FeatureReference value) { if (groupByBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupByIsMutable(); groupBy_.add(value); onChanged(); } else { groupByBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public Builder addGroupBy( int index, ai.chalk.protos.chalk.graph.v1.FeatureReference value) { if (groupByBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGroupByIsMutable(); groupBy_.add(index, value); onChanged(); } else { groupByBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public Builder addGroupBy( ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder builderForValue) { if (groupByBuilder_ == null) { ensureGroupByIsMutable(); groupBy_.add(builderForValue.build()); onChanged(); } else { groupByBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public Builder addGroupBy( int index, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder builderForValue) { if (groupByBuilder_ == null) { ensureGroupByIsMutable(); groupBy_.add(index, builderForValue.build()); onChanged(); } else { groupByBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public Builder addAllGroupBy( java.lang.Iterable<? extends ai.chalk.protos.chalk.graph.v1.FeatureReference> values) { if (groupByBuilder_ == null) { ensureGroupByIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, groupBy_); onChanged(); } else { groupByBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public Builder clearGroupBy() { if (groupByBuilder_ == null) { groupBy_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { groupByBuilder_.clear(); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public Builder removeGroupBy(int index) { if (groupByBuilder_ == null) { ensureGroupByIsMutable(); groupBy_.remove(index); onChanged(); } else { groupByBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder getGroupByBuilder( int index) { return getGroupByFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getGroupByOrBuilder( int index) { if (groupByBuilder_ == null) { return groupBy_.get(index); } else { return groupByBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder> getGroupByOrBuilderList() { if (groupByBuilder_ != null) { return groupByBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(groupBy_); } } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder addGroupByBuilder() { return getGroupByFieldBuilder().addBuilder( ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance()); } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder addGroupByBuilder( int index) { return getGroupByFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance()); } /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ public java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder> getGroupByBuilderList() { return getGroupByFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder> getGroupByFieldBuilder() { if (groupByBuilder_ == null) { groupByBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder>( groupBy_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); groupBy_ = null; } return groupByBuilder_; } private com.google.protobuf.Duration bucketDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> bucketDurationBuilder_; /** * <code>.google.protobuf.Duration bucket_duration = 3 [json_name = "bucketDuration"];</code> * @return Whether the bucketDuration field is set. */ public boolean hasBucketDuration() { return ((bitField0_ & 0x00000004) != 0); } /** * <code>.google.protobuf.Duration bucket_duration = 3 [json_name = "bucketDuration"];</code> * @return The bucketDuration. */ public com.google.protobuf.Duration getBucketDuration() { if (bucketDurationBuilder_ == null) { return bucketDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : bucketDuration_; } else { return bucketDurationBuilder_.getMessage(); } } /** * <code>.google.protobuf.Duration bucket_duration = 3 [json_name = "bucketDuration"];</code> */ public Builder setBucketDuration(com.google.protobuf.Duration value) { if (bucketDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bucketDuration_ = value; } else { bucketDurationBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>.google.protobuf.Duration bucket_duration = 3 [json_name = "bucketDuration"];</code> */ public Builder setBucketDuration( com.google.protobuf.Duration.Builder builderForValue) { if (bucketDurationBuilder_ == null) { bucketDuration_ = builderForValue.build(); } else { bucketDurationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>.google.protobuf.Duration bucket_duration = 3 [json_name = "bucketDuration"];</code> */ public Builder mergeBucketDuration(com.google.protobuf.Duration value) { if (bucketDurationBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && bucketDuration_ != null && bucketDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getBucketDurationBuilder().mergeFrom(value); } else { bucketDuration_ = value; } } else { bucketDurationBuilder_.mergeFrom(value); } if (bucketDuration_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * <code>.google.protobuf.Duration bucket_duration = 3 [json_name = "bucketDuration"];</code> */ public Builder clearBucketDuration() { bitField0_ = (bitField0_ & ~0x00000004); bucketDuration_ = null; if (bucketDurationBuilder_ != null) { bucketDurationBuilder_.dispose(); bucketDurationBuilder_ = null; } onChanged(); return this; } /** * <code>.google.protobuf.Duration bucket_duration = 3 [json_name = "bucketDuration"];</code> */ public com.google.protobuf.Duration.Builder getBucketDurationBuilder() { bitField0_ |= 0x00000004; onChanged(); return getBucketDurationFieldBuilder().getBuilder(); } /** * <code>.google.protobuf.Duration bucket_duration = 3 [json_name = "bucketDuration"];</code> */ public com.google.protobuf.DurationOrBuilder getBucketDurationOrBuilder() { if (bucketDurationBuilder_ != null) { return bucketDurationBuilder_.getMessageOrBuilder(); } else { return bucketDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : bucketDuration_; } } /** * <code>.google.protobuf.Duration bucket_duration = 3 [json_name = "bucketDuration"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getBucketDurationFieldBuilder() { if (bucketDurationBuilder_ == null) { bucketDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getBucketDuration(), getParentForChildren(), isClean()); bucketDuration_ = null; } return bucketDurationBuilder_; } private java.lang.Object aggregation_ = ""; /** * <code>string aggregation = 4 [json_name = "aggregation"];</code> * @return The aggregation. */ public java.lang.String getAggregation() { java.lang.Object ref = aggregation_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); aggregation_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string aggregation = 4 [json_name = "aggregation"];</code> * @return The bytes for aggregation. */ public com.google.protobuf.ByteString getAggregationBytes() { java.lang.Object ref = aggregation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aggregation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string aggregation = 4 [json_name = "aggregation"];</code> * @param value The aggregation to set. * @return This builder for chaining. */ public Builder setAggregation( java.lang.String value) { if (value == null) { throw new NullPointerException(); } aggregation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>string aggregation = 4 [json_name = "aggregation"];</code> * @return This builder for chaining. */ public Builder clearAggregation() { aggregation_ = getDefaultInstance().getAggregation(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * <code>string aggregation = 4 [json_name = "aggregation"];</code> * @param value The bytes for aggregation to set. * @return This builder for chaining. */ public Builder setAggregationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); aggregation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private ai.chalk.protos.chalk.graph.v1.FeatureReference aggregateOn_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder> aggregateOnBuilder_; /** * <code>optional .chalk.graph.v1.FeatureReference aggregate_on = 5 [json_name = "aggregateOn"];</code> * @return Whether the aggregateOn field is set. */ public boolean hasAggregateOn() { return ((bitField0_ & 0x00000010) != 0); } /** * <code>optional .chalk.graph.v1.FeatureReference aggregate_on = 5 [json_name = "aggregateOn"];</code> * @return The aggregateOn. */ public ai.chalk.protos.chalk.graph.v1.FeatureReference getAggregateOn() { if (aggregateOnBuilder_ == null) { return aggregateOn_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : aggregateOn_; } else { return aggregateOnBuilder_.getMessage(); } } /** * <code>optional .chalk.graph.v1.FeatureReference aggregate_on = 5 [json_name = "aggregateOn"];</code> */ public Builder setAggregateOn(ai.chalk.protos.chalk.graph.v1.FeatureReference value) { if (aggregateOnBuilder_ == null) { if (value == null) { throw new NullPointerException(); } aggregateOn_ = value; } else { aggregateOnBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>optional .chalk.graph.v1.FeatureReference aggregate_on = 5 [json_name = "aggregateOn"];</code> */ public Builder setAggregateOn( ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder builderForValue) { if (aggregateOnBuilder_ == null) { aggregateOn_ = builderForValue.build(); } else { aggregateOnBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>optional .chalk.graph.v1.FeatureReference aggregate_on = 5 [json_name = "aggregateOn"];</code> */ public Builder mergeAggregateOn(ai.chalk.protos.chalk.graph.v1.FeatureReference value) { if (aggregateOnBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && aggregateOn_ != null && aggregateOn_ != ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance()) { getAggregateOnBuilder().mergeFrom(value); } else { aggregateOn_ = value; } } else { aggregateOnBuilder_.mergeFrom(value); } if (aggregateOn_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * <code>optional .chalk.graph.v1.FeatureReference aggregate_on = 5 [json_name = "aggregateOn"];</code> */ public Builder clearAggregateOn() { bitField0_ = (bitField0_ & ~0x00000010); aggregateOn_ = null; if (aggregateOnBuilder_ != null) { aggregateOnBuilder_.dispose(); aggregateOnBuilder_ = null; } onChanged(); return this; } /** * <code>optional .chalk.graph.v1.FeatureReference aggregate_on = 5 [json_name = "aggregateOn"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder getAggregateOnBuilder() { bitField0_ |= 0x00000010; onChanged(); return getAggregateOnFieldBuilder().getBuilder(); } /** * <code>optional .chalk.graph.v1.FeatureReference aggregate_on = 5 [json_name = "aggregateOn"];</code> */ public ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getAggregateOnOrBuilder() { if (aggregateOnBuilder_ != null) { return aggregateOnBuilder_.getMessageOrBuilder(); } else { return aggregateOn_ == null ? ai.chalk.protos.chalk.graph.v1.FeatureReference.getDefaultInstance() : aggregateOn_; } } /** * <code>optional .chalk.graph.v1.FeatureReference aggregate_on = 5 [json_name = "aggregateOn"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder> getAggregateOnFieldBuilder() { if (aggregateOnBuilder_ == null) { aggregateOnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.FeatureReference, ai.chalk.protos.chalk.graph.v1.FeatureReference.Builder, ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder>( getAggregateOn(), getParentForChildren(), isClean()); aggregateOn_ = null; } return aggregateOnBuilder_; } private ai.chalk.protos.chalk.arrow.v1.ArrowType arrowType_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> arrowTypeBuilder_; /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 6 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ public boolean hasArrowType() { return ((bitField0_ & 0x00000020) != 0); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 6 [json_name = "arrowType"];</code> * @return The arrowType. */ public ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType() { if (arrowTypeBuilder_ == null) { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } else { return arrowTypeBuilder_.getMessage(); } } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 6 [json_name = "arrowType"];</code> */ public Builder setArrowType(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (arrowTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrowType_ = value; } else { arrowTypeBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 6 [json_name = "arrowType"];</code> */ public Builder setArrowType( ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder builderForValue) { if (arrowTypeBuilder_ == null) { arrowType_ = builderForValue.build(); } else { arrowTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 6 [json_name = "arrowType"];</code> */ public Builder mergeArrowType(ai.chalk.protos.chalk.arrow.v1.ArrowType value) { if (arrowTypeBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && arrowType_ != null && arrowType_ != ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance()) { getArrowTypeBuilder().mergeFrom(value); } else { arrowType_ = value; } } else { arrowTypeBuilder_.mergeFrom(value); } if (arrowType_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 6 [json_name = "arrowType"];</code> */ public Builder clearArrowType() { bitField0_ = (bitField0_ & ~0x00000020); arrowType_ = null; if (arrowTypeBuilder_ != null) { arrowTypeBuilder_.dispose(); arrowTypeBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 6 [json_name = "arrowType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder getArrowTypeBuilder() { bitField0_ |= 0x00000020; onChanged(); return getArrowTypeFieldBuilder().getBuilder(); } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 6 [json_name = "arrowType"];</code> */ public ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder() { if (arrowTypeBuilder_ != null) { return arrowTypeBuilder_.getMessageOrBuilder(); } else { return arrowType_ == null ? ai.chalk.protos.chalk.arrow.v1.ArrowType.getDefaultInstance() : arrowType_; } } /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 6 [json_name = "arrowType"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder> getArrowTypeFieldBuilder() { if (arrowTypeBuilder_ == null) { arrowTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.arrow.v1.ArrowType, ai.chalk.protos.chalk.arrow.v1.ArrowType.Builder, ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder>( getArrowType(), getParentForChildren(), isClean()); arrowType_ = null; } return arrowTypeBuilder_; } private java.util.List<ai.chalk.protos.chalk.expression.v1.LogicalExprNode> filters_ = java.util.Collections.emptyList(); private void ensureFiltersIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { filters_ = new java.util.ArrayList<ai.chalk.protos.chalk.expression.v1.LogicalExprNode>(filters_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.expression.v1.LogicalExprNode, ai.chalk.protos.chalk.expression.v1.LogicalExprNode.Builder, ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder> filtersBuilder_; /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public java.util.List<ai.chalk.protos.chalk.expression.v1.LogicalExprNode> getFiltersList() { if (filtersBuilder_ == null) { return java.util.Collections.unmodifiableList(filters_); } else { return filtersBuilder_.getMessageList(); } } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public int getFiltersCount() { if (filtersBuilder_ == null) { return filters_.size(); } else { return filtersBuilder_.getCount(); } } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public ai.chalk.protos.chalk.expression.v1.LogicalExprNode getFilters(int index) { if (filtersBuilder_ == null) { return filters_.get(index); } else { return filtersBuilder_.getMessage(index); } } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public Builder setFilters( int index, ai.chalk.protos.chalk.expression.v1.LogicalExprNode value) { if (filtersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFiltersIsMutable(); filters_.set(index, value); onChanged(); } else { filtersBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public Builder setFilters( int index, ai.chalk.protos.chalk.expression.v1.LogicalExprNode.Builder builderForValue) { if (filtersBuilder_ == null) { ensureFiltersIsMutable(); filters_.set(index, builderForValue.build()); onChanged(); } else { filtersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public Builder addFilters(ai.chalk.protos.chalk.expression.v1.LogicalExprNode value) { if (filtersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFiltersIsMutable(); filters_.add(value); onChanged(); } else { filtersBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public Builder addFilters( int index, ai.chalk.protos.chalk.expression.v1.LogicalExprNode value) { if (filtersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFiltersIsMutable(); filters_.add(index, value); onChanged(); } else { filtersBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public Builder addFilters( ai.chalk.protos.chalk.expression.v1.LogicalExprNode.Builder builderForValue) { if (filtersBuilder_ == null) { ensureFiltersIsMutable(); filters_.add(builderForValue.build()); onChanged(); } else { filtersBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public Builder addFilters( int index, ai.chalk.protos.chalk.expression.v1.LogicalExprNode.Builder builderForValue) { if (filtersBuilder_ == null) { ensureFiltersIsMutable(); filters_.add(index, builderForValue.build()); onChanged(); } else { filtersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public Builder addAllFilters( java.lang.Iterable<? extends ai.chalk.protos.chalk.expression.v1.LogicalExprNode> values) { if (filtersBuilder_ == null) { ensureFiltersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, filters_); onChanged(); } else { filtersBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public Builder clearFilters() { if (filtersBuilder_ == null) { filters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { filtersBuilder_.clear(); } return this; } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public Builder removeFilters(int index) { if (filtersBuilder_ == null) { ensureFiltersIsMutable(); filters_.remove(index); onChanged(); } else { filtersBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public ai.chalk.protos.chalk.expression.v1.LogicalExprNode.Builder getFiltersBuilder( int index) { return getFiltersFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder getFiltersOrBuilder( int index) { if (filtersBuilder_ == null) { return filters_.get(index); } else { return filtersBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder> getFiltersOrBuilderList() { if (filtersBuilder_ != null) { return filtersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(filters_); } } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public ai.chalk.protos.chalk.expression.v1.LogicalExprNode.Builder addFiltersBuilder() { return getFiltersFieldBuilder().addBuilder( ai.chalk.protos.chalk.expression.v1.LogicalExprNode.getDefaultInstance()); } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public ai.chalk.protos.chalk.expression.v1.LogicalExprNode.Builder addFiltersBuilder( int index) { return getFiltersFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.expression.v1.LogicalExprNode.getDefaultInstance()); } /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ public java.util.List<ai.chalk.protos.chalk.expression.v1.LogicalExprNode.Builder> getFiltersBuilderList() { return getFiltersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.expression.v1.LogicalExprNode, ai.chalk.protos.chalk.expression.v1.LogicalExprNode.Builder, ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder> getFiltersFieldBuilder() { if (filtersBuilder_ == null) { filtersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.expression.v1.LogicalExprNode, ai.chalk.protos.chalk.expression.v1.LogicalExprNode.Builder, ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder>( filters_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); filters_ = null; } return filtersBuilder_; } private java.lang.Object backfillResolver_ = ""; /** * <pre> * The resolver to use for back-filling the materialized aggregate. * If not provided, the data will be back filled using the resolver * that would run for an offline query. * </pre> * * <code>optional string backfill_resolver = 8 [json_name = "backfillResolver"];</code> * @return Whether the backfillResolver field is set. */ public boolean hasBackfillResolver() { return ((bitField0_ & 0x00000080) != 0); } /** * <pre> * The resolver to use for back-filling the materialized aggregate. * If not provided, the data will be back filled using the resolver * that would run for an offline query. * </pre> * * <code>optional string backfill_resolver = 8 [json_name = "backfillResolver"];</code> * @return The backfillResolver. */ public java.lang.String getBackfillResolver() { java.lang.Object ref = backfillResolver_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backfillResolver_ = s; return s; } else { return (java.lang.String) ref; } } /** * <pre> * The resolver to use for back-filling the materialized aggregate. * If not provided, the data will be back filled using the resolver * that would run for an offline query. * </pre> * * <code>optional string backfill_resolver = 8 [json_name = "backfillResolver"];</code> * @return The bytes for backfillResolver. */ public com.google.protobuf.ByteString getBackfillResolverBytes() { java.lang.Object ref = backfillResolver_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); backfillResolver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <pre> * The resolver to use for back-filling the materialized aggregate. * If not provided, the data will be back filled using the resolver * that would run for an offline query. * </pre> * * <code>optional string backfill_resolver = 8 [json_name = "backfillResolver"];</code> * @param value The backfillResolver to set. * @return This builder for chaining. */ public Builder setBackfillResolver( java.lang.String value) { if (value == null) { throw new NullPointerException(); } backfillResolver_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * <pre> * The resolver to use for back-filling the materialized aggregate. * If not provided, the data will be back filled using the resolver * that would run for an offline query. * </pre> * * <code>optional string backfill_resolver = 8 [json_name = "backfillResolver"];</code> * @return This builder for chaining. */ public Builder clearBackfillResolver() { backfillResolver_ = getDefaultInstance().getBackfillResolver(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * <pre> * The resolver to use for back-filling the materialized aggregate. * If not provided, the data will be back filled using the resolver * that would run for an offline query. * </pre> * * <code>optional string backfill_resolver = 8 [json_name = "backfillResolver"];</code> * @param value The bytes for backfillResolver to set. * @return This builder for chaining. */ public Builder setBackfillResolverBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); backfillResolver_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private com.google.protobuf.Duration backfillLookbackDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> backfillLookbackDurationBuilder_; /** * <pre> * The amount of time before the start of the previous backfill * to consider when running the backfill resolver. Set this parameter * to the be equal to the latest arriving data in the backfill window. * </pre> * * <code>optional .google.protobuf.Duration backfill_lookback_duration = 9 [json_name = "backfillLookbackDuration"];</code> * @return Whether the backfillLookbackDuration field is set. */ public boolean hasBackfillLookbackDuration() { return ((bitField0_ & 0x00000100) != 0); } /** * <pre> * The amount of time before the start of the previous backfill * to consider when running the backfill resolver. Set this parameter * to the be equal to the latest arriving data in the backfill window. * </pre> * * <code>optional .google.protobuf.Duration backfill_lookback_duration = 9 [json_name = "backfillLookbackDuration"];</code> * @return The backfillLookbackDuration. */ public com.google.protobuf.Duration getBackfillLookbackDuration() { if (backfillLookbackDurationBuilder_ == null) { return backfillLookbackDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : backfillLookbackDuration_; } else { return backfillLookbackDurationBuilder_.getMessage(); } } /** * <pre> * The amount of time before the start of the previous backfill * to consider when running the backfill resolver. Set this parameter * to the be equal to the latest arriving data in the backfill window. * </pre> * * <code>optional .google.protobuf.Duration backfill_lookback_duration = 9 [json_name = "backfillLookbackDuration"];</code> */ public Builder setBackfillLookbackDuration(com.google.protobuf.Duration value) { if (backfillLookbackDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } backfillLookbackDuration_ = value; } else { backfillLookbackDurationBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * <pre> * The amount of time before the start of the previous backfill * to consider when running the backfill resolver. Set this parameter * to the be equal to the latest arriving data in the backfill window. * </pre> * * <code>optional .google.protobuf.Duration backfill_lookback_duration = 9 [json_name = "backfillLookbackDuration"];</code> */ public Builder setBackfillLookbackDuration( com.google.protobuf.Duration.Builder builderForValue) { if (backfillLookbackDurationBuilder_ == null) { backfillLookbackDuration_ = builderForValue.build(); } else { backfillLookbackDurationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * <pre> * The amount of time before the start of the previous backfill * to consider when running the backfill resolver. Set this parameter * to the be equal to the latest arriving data in the backfill window. * </pre> * * <code>optional .google.protobuf.Duration backfill_lookback_duration = 9 [json_name = "backfillLookbackDuration"];</code> */ public Builder mergeBackfillLookbackDuration(com.google.protobuf.Duration value) { if (backfillLookbackDurationBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && backfillLookbackDuration_ != null && backfillLookbackDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getBackfillLookbackDurationBuilder().mergeFrom(value); } else { backfillLookbackDuration_ = value; } } else { backfillLookbackDurationBuilder_.mergeFrom(value); } if (backfillLookbackDuration_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * <pre> * The amount of time before the start of the previous backfill * to consider when running the backfill resolver. Set this parameter * to the be equal to the latest arriving data in the backfill window. * </pre> * * <code>optional .google.protobuf.Duration backfill_lookback_duration = 9 [json_name = "backfillLookbackDuration"];</code> */ public Builder clearBackfillLookbackDuration() { bitField0_ = (bitField0_ & ~0x00000100); backfillLookbackDuration_ = null; if (backfillLookbackDurationBuilder_ != null) { backfillLookbackDurationBuilder_.dispose(); backfillLookbackDurationBuilder_ = null; } onChanged(); return this; } /** * <pre> * The amount of time before the start of the previous backfill * to consider when running the backfill resolver. Set this parameter * to the be equal to the latest arriving data in the backfill window. * </pre> * * <code>optional .google.protobuf.Duration backfill_lookback_duration = 9 [json_name = "backfillLookbackDuration"];</code> */ public com.google.protobuf.Duration.Builder getBackfillLookbackDurationBuilder() { bitField0_ |= 0x00000100; onChanged(); return getBackfillLookbackDurationFieldBuilder().getBuilder(); } /** * <pre> * The amount of time before the start of the previous backfill * to consider when running the backfill resolver. Set this parameter * to the be equal to the latest arriving data in the backfill window. * </pre> * * <code>optional .google.protobuf.Duration backfill_lookback_duration = 9 [json_name = "backfillLookbackDuration"];</code> */ public com.google.protobuf.DurationOrBuilder getBackfillLookbackDurationOrBuilder() { if (backfillLookbackDurationBuilder_ != null) { return backfillLookbackDurationBuilder_.getMessageOrBuilder(); } else { return backfillLookbackDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : backfillLookbackDuration_; } } /** * <pre> * The amount of time before the start of the previous backfill * to consider when running the backfill resolver. Set this parameter * to the be equal to the latest arriving data in the backfill window. * </pre> * * <code>optional .google.protobuf.Duration backfill_lookback_duration = 9 [json_name = "backfillLookbackDuration"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getBackfillLookbackDurationFieldBuilder() { if (backfillLookbackDurationBuilder_ == null) { backfillLookbackDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getBackfillLookbackDuration(), getParentForChildren(), isClean()); backfillLookbackDuration_ = null; } return backfillLookbackDurationBuilder_; } private com.google.protobuf.Timestamp backfillStartTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> backfillStartTimeBuilder_; /** * <pre> * The time at which to start back filling the materialized aggregate. * If not provided, the backfill consider the earliest available data returned * by the `backfill_resolver`. * </pre> * * <code>optional .google.protobuf.Timestamp backfill_start_time = 10 [json_name = "backfillStartTime"];</code> * @return Whether the backfillStartTime field is set. */ public boolean hasBackfillStartTime() { return ((bitField0_ & 0x00000200) != 0); } /** * <pre> * The time at which to start back filling the materialized aggregate. * If not provided, the backfill consider the earliest available data returned * by the `backfill_resolver`. * </pre> * * <code>optional .google.protobuf.Timestamp backfill_start_time = 10 [json_name = "backfillStartTime"];</code> * @return The backfillStartTime. */ public com.google.protobuf.Timestamp getBackfillStartTime() { if (backfillStartTimeBuilder_ == null) { return backfillStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : backfillStartTime_; } else { return backfillStartTimeBuilder_.getMessage(); } } /** * <pre> * The time at which to start back filling the materialized aggregate. * If not provided, the backfill consider the earliest available data returned * by the `backfill_resolver`. * </pre> * * <code>optional .google.protobuf.Timestamp backfill_start_time = 10 [json_name = "backfillStartTime"];</code> */ public Builder setBackfillStartTime(com.google.protobuf.Timestamp value) { if (backfillStartTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } backfillStartTime_ = value; } else { backfillStartTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * <pre> * The time at which to start back filling the materialized aggregate. * If not provided, the backfill consider the earliest available data returned * by the `backfill_resolver`. * </pre> * * <code>optional .google.protobuf.Timestamp backfill_start_time = 10 [json_name = "backfillStartTime"];</code> */ public Builder setBackfillStartTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (backfillStartTimeBuilder_ == null) { backfillStartTime_ = builderForValue.build(); } else { backfillStartTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * <pre> * The time at which to start back filling the materialized aggregate. * If not provided, the backfill consider the earliest available data returned * by the `backfill_resolver`. * </pre> * * <code>optional .google.protobuf.Timestamp backfill_start_time = 10 [json_name = "backfillStartTime"];</code> */ public Builder mergeBackfillStartTime(com.google.protobuf.Timestamp value) { if (backfillStartTimeBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && backfillStartTime_ != null && backfillStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getBackfillStartTimeBuilder().mergeFrom(value); } else { backfillStartTime_ = value; } } else { backfillStartTimeBuilder_.mergeFrom(value); } if (backfillStartTime_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** * <pre> * The time at which to start back filling the materialized aggregate. * If not provided, the backfill consider the earliest available data returned * by the `backfill_resolver`. * </pre> * * <code>optional .google.protobuf.Timestamp backfill_start_time = 10 [json_name = "backfillStartTime"];</code> */ public Builder clearBackfillStartTime() { bitField0_ = (bitField0_ & ~0x00000200); backfillStartTime_ = null; if (backfillStartTimeBuilder_ != null) { backfillStartTimeBuilder_.dispose(); backfillStartTimeBuilder_ = null; } onChanged(); return this; } /** * <pre> * The time at which to start back filling the materialized aggregate. * If not provided, the backfill consider the earliest available data returned * by the `backfill_resolver`. * </pre> * * <code>optional .google.protobuf.Timestamp backfill_start_time = 10 [json_name = "backfillStartTime"];</code> */ public com.google.protobuf.Timestamp.Builder getBackfillStartTimeBuilder() { bitField0_ |= 0x00000200; onChanged(); return getBackfillStartTimeFieldBuilder().getBuilder(); } /** * <pre> * The time at which to start back filling the materialized aggregate. * If not provided, the backfill consider the earliest available data returned * by the `backfill_resolver`. * </pre> * * <code>optional .google.protobuf.Timestamp backfill_start_time = 10 [json_name = "backfillStartTime"];</code> */ public com.google.protobuf.TimestampOrBuilder getBackfillStartTimeOrBuilder() { if (backfillStartTimeBuilder_ != null) { return backfillStartTimeBuilder_.getMessageOrBuilder(); } else { return backfillStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : backfillStartTime_; } } /** * <pre> * The time at which to start back filling the materialized aggregate. * If not provided, the backfill consider the earliest available data returned * by the `backfill_resolver`. * </pre> * * <code>optional .google.protobuf.Timestamp backfill_start_time = 10 [json_name = "backfillStartTime"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getBackfillStartTimeFieldBuilder() { if (backfillStartTimeBuilder_ == null) { backfillStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getBackfillStartTime(), getParentForChildren(), isClean()); backfillStartTime_ = null; } return backfillStartTimeBuilder_; } private java.lang.Object continuousResolver_ = ""; /** * <pre> * The resolver to use for continuous updates to the materialized aggregate. * If not provided, the data will be updated using the resolver that would run * for an online query. * </pre> * * <code>optional string continuous_resolver = 11 [json_name = "continuousResolver"];</code> * @return Whether the continuousResolver field is set. */ public boolean hasContinuousResolver() { return ((bitField0_ & 0x00000400) != 0); } /** * <pre> * The resolver to use for continuous updates to the materialized aggregate. * If not provided, the data will be updated using the resolver that would run * for an online query. * </pre> * * <code>optional string continuous_resolver = 11 [json_name = "continuousResolver"];</code> * @return The continuousResolver. */ public java.lang.String getContinuousResolver() { java.lang.Object ref = continuousResolver_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); continuousResolver_ = s; return s; } else { return (java.lang.String) ref; } } /** * <pre> * The resolver to use for continuous updates to the materialized aggregate. * If not provided, the data will be updated using the resolver that would run * for an online query. * </pre> * * <code>optional string continuous_resolver = 11 [json_name = "continuousResolver"];</code> * @return The bytes for continuousResolver. */ public com.google.protobuf.ByteString getContinuousResolverBytes() { java.lang.Object ref = continuousResolver_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); continuousResolver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <pre> * The resolver to use for continuous updates to the materialized aggregate. * If not provided, the data will be updated using the resolver that would run * for an online query. * </pre> * * <code>optional string continuous_resolver = 11 [json_name = "continuousResolver"];</code> * @param value The continuousResolver to set. * @return This builder for chaining. */ public Builder setContinuousResolver( java.lang.String value) { if (value == null) { throw new NullPointerException(); } continuousResolver_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * <pre> * The resolver to use for continuous updates to the materialized aggregate. * If not provided, the data will be updated using the resolver that would run * for an online query. * </pre> * * <code>optional string continuous_resolver = 11 [json_name = "continuousResolver"];</code> * @return This builder for chaining. */ public Builder clearContinuousResolver() { continuousResolver_ = getDefaultInstance().getContinuousResolver(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * <pre> * The resolver to use for continuous updates to the materialized aggregate. * If not provided, the data will be updated using the resolver that would run * for an online query. * </pre> * * <code>optional string continuous_resolver = 11 [json_name = "continuousResolver"];</code> * @param value The bytes for continuousResolver to set. * @return This builder for chaining. */ public Builder setContinuousResolverBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); continuousResolver_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private com.google.protobuf.Duration continuousBufferDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> continuousBufferDurationBuilder_; /** * <pre> * The period for which to use the continuous resolver, instead * of relying upon the last backfill. If not provided, and a continuous * resolver is provided, this will be set to backfill_lookback_duration. * </pre> * * <code>optional .google.protobuf.Duration continuous_buffer_duration = 12 [json_name = "continuousBufferDuration"];</code> * @return Whether the continuousBufferDuration field is set. */ public boolean hasContinuousBufferDuration() { return ((bitField0_ & 0x00000800) != 0); } /** * <pre> * The period for which to use the continuous resolver, instead * of relying upon the last backfill. If not provided, and a continuous * resolver is provided, this will be set to backfill_lookback_duration. * </pre> * * <code>optional .google.protobuf.Duration continuous_buffer_duration = 12 [json_name = "continuousBufferDuration"];</code> * @return The continuousBufferDuration. */ public com.google.protobuf.Duration getContinuousBufferDuration() { if (continuousBufferDurationBuilder_ == null) { return continuousBufferDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : continuousBufferDuration_; } else { return continuousBufferDurationBuilder_.getMessage(); } } /** * <pre> * The period for which to use the continuous resolver, instead * of relying upon the last backfill. If not provided, and a continuous * resolver is provided, this will be set to backfill_lookback_duration. * </pre> * * <code>optional .google.protobuf.Duration continuous_buffer_duration = 12 [json_name = "continuousBufferDuration"];</code> */ public Builder setContinuousBufferDuration(com.google.protobuf.Duration value) { if (continuousBufferDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } continuousBufferDuration_ = value; } else { continuousBufferDurationBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * <pre> * The period for which to use the continuous resolver, instead * of relying upon the last backfill. If not provided, and a continuous * resolver is provided, this will be set to backfill_lookback_duration. * </pre> * * <code>optional .google.protobuf.Duration continuous_buffer_duration = 12 [json_name = "continuousBufferDuration"];</code> */ public Builder setContinuousBufferDuration( com.google.protobuf.Duration.Builder builderForValue) { if (continuousBufferDurationBuilder_ == null) { continuousBufferDuration_ = builderForValue.build(); } else { continuousBufferDurationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * <pre> * The period for which to use the continuous resolver, instead * of relying upon the last backfill. If not provided, and a continuous * resolver is provided, this will be set to backfill_lookback_duration. * </pre> * * <code>optional .google.protobuf.Duration continuous_buffer_duration = 12 [json_name = "continuousBufferDuration"];</code> */ public Builder mergeContinuousBufferDuration(com.google.protobuf.Duration value) { if (continuousBufferDurationBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && continuousBufferDuration_ != null && continuousBufferDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getContinuousBufferDurationBuilder().mergeFrom(value); } else { continuousBufferDuration_ = value; } } else { continuousBufferDurationBuilder_.mergeFrom(value); } if (continuousBufferDuration_ != null) { bitField0_ |= 0x00000800; onChanged(); } return this; } /** * <pre> * The period for which to use the continuous resolver, instead * of relying upon the last backfill. If not provided, and a continuous * resolver is provided, this will be set to backfill_lookback_duration. * </pre> * * <code>optional .google.protobuf.Duration continuous_buffer_duration = 12 [json_name = "continuousBufferDuration"];</code> */ public Builder clearContinuousBufferDuration() { bitField0_ = (bitField0_ & ~0x00000800); continuousBufferDuration_ = null; if (continuousBufferDurationBuilder_ != null) { continuousBufferDurationBuilder_.dispose(); continuousBufferDurationBuilder_ = null; } onChanged(); return this; } /** * <pre> * The period for which to use the continuous resolver, instead * of relying upon the last backfill. If not provided, and a continuous * resolver is provided, this will be set to backfill_lookback_duration. * </pre> * * <code>optional .google.protobuf.Duration continuous_buffer_duration = 12 [json_name = "continuousBufferDuration"];</code> */ public com.google.protobuf.Duration.Builder getContinuousBufferDurationBuilder() { bitField0_ |= 0x00000800; onChanged(); return getContinuousBufferDurationFieldBuilder().getBuilder(); } /** * <pre> * The period for which to use the continuous resolver, instead * of relying upon the last backfill. If not provided, and a continuous * resolver is provided, this will be set to backfill_lookback_duration. * </pre> * * <code>optional .google.protobuf.Duration continuous_buffer_duration = 12 [json_name = "continuousBufferDuration"];</code> */ public com.google.protobuf.DurationOrBuilder getContinuousBufferDurationOrBuilder() { if (continuousBufferDurationBuilder_ != null) { return continuousBufferDurationBuilder_.getMessageOrBuilder(); } else { return continuousBufferDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : continuousBufferDuration_; } } /** * <pre> * The period for which to use the continuous resolver, instead * of relying upon the last backfill. If not provided, and a continuous * resolver is provided, this will be set to backfill_lookback_duration. * </pre> * * <code>optional .google.protobuf.Duration continuous_buffer_duration = 12 [json_name = "continuousBufferDuration"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getContinuousBufferDurationFieldBuilder() { if (continuousBufferDurationBuilder_ == null) { continuousBufferDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getContinuousBufferDuration(), getParentForChildren(), isClean()); continuousBufferDuration_ = null; } return continuousBufferDurationBuilder_; } private java.lang.Object backfillSchedule_ = ""; /** * <pre> * A crontab or duration string to specify the schedule for back filling the * materialized aggregate. * </pre> * * <code>optional string backfill_schedule = 13 [json_name = "backfillSchedule"];</code> * @return Whether the backfillSchedule field is set. */ public boolean hasBackfillSchedule() { return ((bitField0_ & 0x00001000) != 0); } /** * <pre> * A crontab or duration string to specify the schedule for back filling the * materialized aggregate. * </pre> * * <code>optional string backfill_schedule = 13 [json_name = "backfillSchedule"];</code> * @return The backfillSchedule. */ public java.lang.String getBackfillSchedule() { java.lang.Object ref = backfillSchedule_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backfillSchedule_ = s; return s; } else { return (java.lang.String) ref; } } /** * <pre> * A crontab or duration string to specify the schedule for back filling the * materialized aggregate. * </pre> * * <code>optional string backfill_schedule = 13 [json_name = "backfillSchedule"];</code> * @return The bytes for backfillSchedule. */ public com.google.protobuf.ByteString getBackfillScheduleBytes() { java.lang.Object ref = backfillSchedule_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); backfillSchedule_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <pre> * A crontab or duration string to specify the schedule for back filling the * materialized aggregate. * </pre> * * <code>optional string backfill_schedule = 13 [json_name = "backfillSchedule"];</code> * @param value The backfillSchedule to set. * @return This builder for chaining. */ public Builder setBackfillSchedule( java.lang.String value) { if (value == null) { throw new NullPointerException(); } backfillSchedule_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * <pre> * A crontab or duration string to specify the schedule for back filling the * materialized aggregate. * </pre> * * <code>optional string backfill_schedule = 13 [json_name = "backfillSchedule"];</code> * @return This builder for chaining. */ public Builder clearBackfillSchedule() { backfillSchedule_ = getDefaultInstance().getBackfillSchedule(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** * <pre> * A crontab or duration string to specify the schedule for back filling the * materialized aggregate. * </pre> * * <code>optional string backfill_schedule = 13 [json_name = "backfillSchedule"];</code> * @param value The bytes for backfillSchedule to set. * @return This builder for chaining. */ public Builder setBackfillScheduleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); backfillSchedule_ = value; bitField0_ |= 0x00001000; 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.graph.v1.WindowAggregation) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.WindowAggregation) private static final ai.chalk.protos.chalk.graph.v1.WindowAggregation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.WindowAggregation(); } public static ai.chalk.protos.chalk.graph.v1.WindowAggregation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<WindowAggregation> PARSER = new com.google.protobuf.AbstractParser<WindowAggregation>() { @java.lang.Override public WindowAggregation 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<WindowAggregation> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<WindowAggregation> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowAggregation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/WindowAggregationOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface WindowAggregationOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.WindowAggregation) com.google.protobuf.MessageOrBuilder { /** * <code>string namespace = 1 [json_name = "namespace"];</code> * @return The namespace. */ java.lang.String getNamespace(); /** * <code>string namespace = 1 [json_name = "namespace"];</code> * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ java.util.List<ai.chalk.protos.chalk.graph.v1.FeatureReference> getGroupByList(); /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ ai.chalk.protos.chalk.graph.v1.FeatureReference getGroupBy(int index); /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ int getGroupByCount(); /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder> getGroupByOrBuilderList(); /** * <code>repeated .chalk.graph.v1.FeatureReference group_by = 2 [json_name = "groupBy"];</code> */ ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getGroupByOrBuilder( int index); /** * <code>.google.protobuf.Duration bucket_duration = 3 [json_name = "bucketDuration"];</code> * @return Whether the bucketDuration field is set. */ boolean hasBucketDuration(); /** * <code>.google.protobuf.Duration bucket_duration = 3 [json_name = "bucketDuration"];</code> * @return The bucketDuration. */ com.google.protobuf.Duration getBucketDuration(); /** * <code>.google.protobuf.Duration bucket_duration = 3 [json_name = "bucketDuration"];</code> */ com.google.protobuf.DurationOrBuilder getBucketDurationOrBuilder(); /** * <code>string aggregation = 4 [json_name = "aggregation"];</code> * @return The aggregation. */ java.lang.String getAggregation(); /** * <code>string aggregation = 4 [json_name = "aggregation"];</code> * @return The bytes for aggregation. */ com.google.protobuf.ByteString getAggregationBytes(); /** * <code>optional .chalk.graph.v1.FeatureReference aggregate_on = 5 [json_name = "aggregateOn"];</code> * @return Whether the aggregateOn field is set. */ boolean hasAggregateOn(); /** * <code>optional .chalk.graph.v1.FeatureReference aggregate_on = 5 [json_name = "aggregateOn"];</code> * @return The aggregateOn. */ ai.chalk.protos.chalk.graph.v1.FeatureReference getAggregateOn(); /** * <code>optional .chalk.graph.v1.FeatureReference aggregate_on = 5 [json_name = "aggregateOn"];</code> */ ai.chalk.protos.chalk.graph.v1.FeatureReferenceOrBuilder getAggregateOnOrBuilder(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 6 [json_name = "arrowType"];</code> * @return Whether the arrowType field is set. */ boolean hasArrowType(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 6 [json_name = "arrowType"];</code> * @return The arrowType. */ ai.chalk.protos.chalk.arrow.v1.ArrowType getArrowType(); /** * <code>.chalk.arrow.v1.ArrowType arrow_type = 6 [json_name = "arrowType"];</code> */ ai.chalk.protos.chalk.arrow.v1.ArrowTypeOrBuilder getArrowTypeOrBuilder(); /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ java.util.List<ai.chalk.protos.chalk.expression.v1.LogicalExprNode> getFiltersList(); /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ ai.chalk.protos.chalk.expression.v1.LogicalExprNode getFilters(int index); /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ int getFiltersCount(); /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder> getFiltersOrBuilderList(); /** * <code>repeated .chalk.expression.v1.LogicalExprNode filters = 7 [json_name = "filters"];</code> */ ai.chalk.protos.chalk.expression.v1.LogicalExprNodeOrBuilder getFiltersOrBuilder( int index); /** * <pre> * The resolver to use for back-filling the materialized aggregate. * If not provided, the data will be back filled using the resolver * that would run for an offline query. * </pre> * * <code>optional string backfill_resolver = 8 [json_name = "backfillResolver"];</code> * @return Whether the backfillResolver field is set. */ boolean hasBackfillResolver(); /** * <pre> * The resolver to use for back-filling the materialized aggregate. * If not provided, the data will be back filled using the resolver * that would run for an offline query. * </pre> * * <code>optional string backfill_resolver = 8 [json_name = "backfillResolver"];</code> * @return The backfillResolver. */ java.lang.String getBackfillResolver(); /** * <pre> * The resolver to use for back-filling the materialized aggregate. * If not provided, the data will be back filled using the resolver * that would run for an offline query. * </pre> * * <code>optional string backfill_resolver = 8 [json_name = "backfillResolver"];</code> * @return The bytes for backfillResolver. */ com.google.protobuf.ByteString getBackfillResolverBytes(); /** * <pre> * The amount of time before the start of the previous backfill * to consider when running the backfill resolver. Set this parameter * to the be equal to the latest arriving data in the backfill window. * </pre> * * <code>optional .google.protobuf.Duration backfill_lookback_duration = 9 [json_name = "backfillLookbackDuration"];</code> * @return Whether the backfillLookbackDuration field is set. */ boolean hasBackfillLookbackDuration(); /** * <pre> * The amount of time before the start of the previous backfill * to consider when running the backfill resolver. Set this parameter * to the be equal to the latest arriving data in the backfill window. * </pre> * * <code>optional .google.protobuf.Duration backfill_lookback_duration = 9 [json_name = "backfillLookbackDuration"];</code> * @return The backfillLookbackDuration. */ com.google.protobuf.Duration getBackfillLookbackDuration(); /** * <pre> * The amount of time before the start of the previous backfill * to consider when running the backfill resolver. Set this parameter * to the be equal to the latest arriving data in the backfill window. * </pre> * * <code>optional .google.protobuf.Duration backfill_lookback_duration = 9 [json_name = "backfillLookbackDuration"];</code> */ com.google.protobuf.DurationOrBuilder getBackfillLookbackDurationOrBuilder(); /** * <pre> * The time at which to start back filling the materialized aggregate. * If not provided, the backfill consider the earliest available data returned * by the `backfill_resolver`. * </pre> * * <code>optional .google.protobuf.Timestamp backfill_start_time = 10 [json_name = "backfillStartTime"];</code> * @return Whether the backfillStartTime field is set. */ boolean hasBackfillStartTime(); /** * <pre> * The time at which to start back filling the materialized aggregate. * If not provided, the backfill consider the earliest available data returned * by the `backfill_resolver`. * </pre> * * <code>optional .google.protobuf.Timestamp backfill_start_time = 10 [json_name = "backfillStartTime"];</code> * @return The backfillStartTime. */ com.google.protobuf.Timestamp getBackfillStartTime(); /** * <pre> * The time at which to start back filling the materialized aggregate. * If not provided, the backfill consider the earliest available data returned * by the `backfill_resolver`. * </pre> * * <code>optional .google.protobuf.Timestamp backfill_start_time = 10 [json_name = "backfillStartTime"];</code> */ com.google.protobuf.TimestampOrBuilder getBackfillStartTimeOrBuilder(); /** * <pre> * The resolver to use for continuous updates to the materialized aggregate. * If not provided, the data will be updated using the resolver that would run * for an online query. * </pre> * * <code>optional string continuous_resolver = 11 [json_name = "continuousResolver"];</code> * @return Whether the continuousResolver field is set. */ boolean hasContinuousResolver(); /** * <pre> * The resolver to use for continuous updates to the materialized aggregate. * If not provided, the data will be updated using the resolver that would run * for an online query. * </pre> * * <code>optional string continuous_resolver = 11 [json_name = "continuousResolver"];</code> * @return The continuousResolver. */ java.lang.String getContinuousResolver(); /** * <pre> * The resolver to use for continuous updates to the materialized aggregate. * If not provided, the data will be updated using the resolver that would run * for an online query. * </pre> * * <code>optional string continuous_resolver = 11 [json_name = "continuousResolver"];</code> * @return The bytes for continuousResolver. */ com.google.protobuf.ByteString getContinuousResolverBytes(); /** * <pre> * The period for which to use the continuous resolver, instead * of relying upon the last backfill. If not provided, and a continuous * resolver is provided, this will be set to backfill_lookback_duration. * </pre> * * <code>optional .google.protobuf.Duration continuous_buffer_duration = 12 [json_name = "continuousBufferDuration"];</code> * @return Whether the continuousBufferDuration field is set. */ boolean hasContinuousBufferDuration(); /** * <pre> * The period for which to use the continuous resolver, instead * of relying upon the last backfill. If not provided, and a continuous * resolver is provided, this will be set to backfill_lookback_duration. * </pre> * * <code>optional .google.protobuf.Duration continuous_buffer_duration = 12 [json_name = "continuousBufferDuration"];</code> * @return The continuousBufferDuration. */ com.google.protobuf.Duration getContinuousBufferDuration(); /** * <pre> * The period for which to use the continuous resolver, instead * of relying upon the last backfill. If not provided, and a continuous * resolver is provided, this will be set to backfill_lookback_duration. * </pre> * * <code>optional .google.protobuf.Duration continuous_buffer_duration = 12 [json_name = "continuousBufferDuration"];</code> */ com.google.protobuf.DurationOrBuilder getContinuousBufferDurationOrBuilder(); /** * <pre> * A crontab or duration string to specify the schedule for back filling the * materialized aggregate. * </pre> * * <code>optional string backfill_schedule = 13 [json_name = "backfillSchedule"];</code> * @return Whether the backfillSchedule field is set. */ boolean hasBackfillSchedule(); /** * <pre> * A crontab or duration string to specify the schedule for back filling the * materialized aggregate. * </pre> * * <code>optional string backfill_schedule = 13 [json_name = "backfillSchedule"];</code> * @return The backfillSchedule. */ java.lang.String getBackfillSchedule(); /** * <pre> * A crontab or duration string to specify the schedule for back filling the * materialized aggregate. * </pre> * * <code>optional string backfill_schedule = 13 [json_name = "backfillSchedule"];</code> * @return The bytes for backfillSchedule. */ com.google.protobuf.ByteString getBackfillScheduleBytes(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/WindowInfo.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.WindowInfo} */ public final class WindowInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.WindowInfo) WindowInfoOrBuilder { private static final long serialVersionUID = 0L; // Use WindowInfo.newBuilder() to construct. private WindowInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private WindowInfo() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WindowInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_WindowInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_WindowInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.WindowInfo.class, ai.chalk.protos.chalk.graph.v1.WindowInfo.Builder.class); } private int bitField0_; public static final int DURATION_FIELD_NUMBER = 1; private com.google.protobuf.Duration duration_; /** * <code>.google.protobuf.Duration duration = 1 [json_name = "duration"];</code> * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.google.protobuf.Duration duration = 1 [json_name = "duration"];</code> * @return The duration. */ @java.lang.Override public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** * <code>.google.protobuf.Duration duration = 1 [json_name = "duration"];</code> */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } public static final int AGGREGATION_FIELD_NUMBER = 2; private ai.chalk.protos.chalk.graph.v1.WindowAggregation aggregation_; /** * <code>optional .chalk.graph.v1.WindowAggregation aggregation = 2 [json_name = "aggregation"];</code> * @return Whether the aggregation field is set. */ @java.lang.Override public boolean hasAggregation() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>optional .chalk.graph.v1.WindowAggregation aggregation = 2 [json_name = "aggregation"];</code> * @return The aggregation. */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowAggregation getAggregation() { return aggregation_ == null ? ai.chalk.protos.chalk.graph.v1.WindowAggregation.getDefaultInstance() : aggregation_; } /** * <code>optional .chalk.graph.v1.WindowAggregation aggregation = 2 [json_name = "aggregation"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowAggregationOrBuilder getAggregationOrBuilder() { return aggregation_ == null ? ai.chalk.protos.chalk.graph.v1.WindowAggregation.getDefaultInstance() : aggregation_; } 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, getDuration()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getAggregation()); } 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, getDuration()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAggregation()); } 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.graph.v1.WindowInfo)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.WindowInfo other = (ai.chalk.protos.chalk.graph.v1.WindowInfo) obj; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { if (!getDuration() .equals(other.getDuration())) return false; } if (hasAggregation() != other.hasAggregation()) return false; if (hasAggregation()) { if (!getAggregation() .equals(other.getAggregation())) 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 (hasDuration()) { hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); } if (hasAggregation()) { hash = (37 * hash) + AGGREGATION_FIELD_NUMBER; hash = (53 * hash) + getAggregation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.WindowInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.WindowInfo 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.graph.v1.WindowInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.WindowInfo 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.graph.v1.WindowInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.WindowInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.WindowInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.WindowInfo 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.graph.v1.WindowInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.WindowInfo 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.graph.v1.WindowInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.WindowInfo 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.graph.v1.WindowInfo 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.graph.v1.WindowInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.WindowInfo) ai.chalk.protos.chalk.graph.v1.WindowInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_WindowInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_WindowInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.WindowInfo.class, ai.chalk.protos.chalk.graph.v1.WindowInfo.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.WindowInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDurationFieldBuilder(); getAggregationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } aggregation_ = null; if (aggregationBuilder_ != null) { aggregationBuilder_.dispose(); aggregationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_WindowInfo_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowInfo getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.WindowInfo.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowInfo build() { ai.chalk.protos.chalk.graph.v1.WindowInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowInfo buildPartial() { ai.chalk.protos.chalk.graph.v1.WindowInfo result = new ai.chalk.protos.chalk.graph.v1.WindowInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.WindowInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.aggregation_ = aggregationBuilder_ == null ? aggregation_ : aggregationBuilder_.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.graph.v1.WindowInfo) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.WindowInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.WindowInfo other) { if (other == ai.chalk.protos.chalk.graph.v1.WindowInfo.getDefaultInstance()) return this; if (other.hasDuration()) { mergeDuration(other.getDuration()); } if (other.hasAggregation()) { mergeAggregation(other.getAggregation()); } 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( getDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getAggregationFieldBuilder().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 com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** * <code>.google.protobuf.Duration duration = 1 [json_name = "duration"];</code> * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.google.protobuf.Duration duration = 1 [json_name = "duration"];</code> * @return The duration. */ public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } else { return durationBuilder_.getMessage(); } } /** * <code>.google.protobuf.Duration duration = 1 [json_name = "duration"];</code> */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } duration_ = value; } else { durationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.google.protobuf.Duration duration = 1 [json_name = "duration"];</code> */ public Builder setDuration( com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { durationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.google.protobuf.Duration duration = 1 [json_name = "duration"];</code> */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && duration_ != null && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; } } else { durationBuilder_.mergeFrom(value); } if (duration_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * <code>.google.protobuf.Duration duration = 1 [json_name = "duration"];</code> */ public Builder clearDuration() { bitField0_ = (bitField0_ & ~0x00000001); duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } onChanged(); return this; } /** * <code>.google.protobuf.Duration duration = 1 [json_name = "duration"];</code> */ public com.google.protobuf.Duration.Builder getDurationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDurationFieldBuilder().getBuilder(); } /** * <code>.google.protobuf.Duration duration = 1 [json_name = "duration"];</code> */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** * <code>.google.protobuf.Duration duration = 1 [json_name = "duration"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } private ai.chalk.protos.chalk.graph.v1.WindowAggregation aggregation_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.WindowAggregation, ai.chalk.protos.chalk.graph.v1.WindowAggregation.Builder, ai.chalk.protos.chalk.graph.v1.WindowAggregationOrBuilder> aggregationBuilder_; /** * <code>optional .chalk.graph.v1.WindowAggregation aggregation = 2 [json_name = "aggregation"];</code> * @return Whether the aggregation field is set. */ public boolean hasAggregation() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>optional .chalk.graph.v1.WindowAggregation aggregation = 2 [json_name = "aggregation"];</code> * @return The aggregation. */ public ai.chalk.protos.chalk.graph.v1.WindowAggregation getAggregation() { if (aggregationBuilder_ == null) { return aggregation_ == null ? ai.chalk.protos.chalk.graph.v1.WindowAggregation.getDefaultInstance() : aggregation_; } else { return aggregationBuilder_.getMessage(); } } /** * <code>optional .chalk.graph.v1.WindowAggregation aggregation = 2 [json_name = "aggregation"];</code> */ public Builder setAggregation(ai.chalk.protos.chalk.graph.v1.WindowAggregation value) { if (aggregationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } aggregation_ = value; } else { aggregationBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>optional .chalk.graph.v1.WindowAggregation aggregation = 2 [json_name = "aggregation"];</code> */ public Builder setAggregation( ai.chalk.protos.chalk.graph.v1.WindowAggregation.Builder builderForValue) { if (aggregationBuilder_ == null) { aggregation_ = builderForValue.build(); } else { aggregationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>optional .chalk.graph.v1.WindowAggregation aggregation = 2 [json_name = "aggregation"];</code> */ public Builder mergeAggregation(ai.chalk.protos.chalk.graph.v1.WindowAggregation value) { if (aggregationBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && aggregation_ != null && aggregation_ != ai.chalk.protos.chalk.graph.v1.WindowAggregation.getDefaultInstance()) { getAggregationBuilder().mergeFrom(value); } else { aggregation_ = value; } } else { aggregationBuilder_.mergeFrom(value); } if (aggregation_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * <code>optional .chalk.graph.v1.WindowAggregation aggregation = 2 [json_name = "aggregation"];</code> */ public Builder clearAggregation() { bitField0_ = (bitField0_ & ~0x00000002); aggregation_ = null; if (aggregationBuilder_ != null) { aggregationBuilder_.dispose(); aggregationBuilder_ = null; } onChanged(); return this; } /** * <code>optional .chalk.graph.v1.WindowAggregation aggregation = 2 [json_name = "aggregation"];</code> */ public ai.chalk.protos.chalk.graph.v1.WindowAggregation.Builder getAggregationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAggregationFieldBuilder().getBuilder(); } /** * <code>optional .chalk.graph.v1.WindowAggregation aggregation = 2 [json_name = "aggregation"];</code> */ public ai.chalk.protos.chalk.graph.v1.WindowAggregationOrBuilder getAggregationOrBuilder() { if (aggregationBuilder_ != null) { return aggregationBuilder_.getMessageOrBuilder(); } else { return aggregation_ == null ? ai.chalk.protos.chalk.graph.v1.WindowAggregation.getDefaultInstance() : aggregation_; } } /** * <code>optional .chalk.graph.v1.WindowAggregation aggregation = 2 [json_name = "aggregation"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.WindowAggregation, ai.chalk.protos.chalk.graph.v1.WindowAggregation.Builder, ai.chalk.protos.chalk.graph.v1.WindowAggregationOrBuilder> getAggregationFieldBuilder() { if (aggregationBuilder_ == null) { aggregationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.graph.v1.WindowAggregation, ai.chalk.protos.chalk.graph.v1.WindowAggregation.Builder, ai.chalk.protos.chalk.graph.v1.WindowAggregationOrBuilder>( getAggregation(), getParentForChildren(), isClean()); aggregation_ = null; } return aggregationBuilder_; } @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.graph.v1.WindowInfo) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.WindowInfo) private static final ai.chalk.protos.chalk.graph.v1.WindowInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.WindowInfo(); } public static ai.chalk.protos.chalk.graph.v1.WindowInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<WindowInfo> PARSER = new com.google.protobuf.AbstractParser<WindowInfo>() { @java.lang.Override public WindowInfo 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<WindowInfo> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<WindowInfo> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/WindowInfoOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface WindowInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.WindowInfo) com.google.protobuf.MessageOrBuilder { /** * <code>.google.protobuf.Duration duration = 1 [json_name = "duration"];</code> * @return Whether the duration field is set. */ boolean hasDuration(); /** * <code>.google.protobuf.Duration duration = 1 [json_name = "duration"];</code> * @return The duration. */ com.google.protobuf.Duration getDuration(); /** * <code>.google.protobuf.Duration duration = 1 [json_name = "duration"];</code> */ com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); /** * <code>optional .chalk.graph.v1.WindowAggregation aggregation = 2 [json_name = "aggregation"];</code> * @return Whether the aggregation field is set. */ boolean hasAggregation(); /** * <code>optional .chalk.graph.v1.WindowAggregation aggregation = 2 [json_name = "aggregation"];</code> * @return The aggregation. */ ai.chalk.protos.chalk.graph.v1.WindowAggregation getAggregation(); /** * <code>optional .chalk.graph.v1.WindowAggregation aggregation = 2 [json_name = "aggregation"];</code> */ ai.chalk.protos.chalk.graph.v1.WindowAggregationOrBuilder getAggregationOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/WindowMode.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf enum {@code chalk.graph.v1.WindowMode} */ public enum WindowMode implements com.google.protobuf.ProtocolMessageEnum { /** * <code>WINDOW_MODE_UNSPECIFIED = 0;</code> */ WINDOW_MODE_UNSPECIFIED(0), /** * <code>WINDOW_MODE_CONTINUOUS = 1;</code> */ WINDOW_MODE_CONTINUOUS(1), /** * <code>WINDOW_MODE_TUMBLING = 2;</code> */ WINDOW_MODE_TUMBLING(2), /** * <code>WINDOW_MODE_CDC = 3;</code> */ WINDOW_MODE_CDC(3), UNRECOGNIZED(-1), ; /** * <code>WINDOW_MODE_UNSPECIFIED = 0;</code> */ public static final int WINDOW_MODE_UNSPECIFIED_VALUE = 0; /** * <code>WINDOW_MODE_CONTINUOUS = 1;</code> */ public static final int WINDOW_MODE_CONTINUOUS_VALUE = 1; /** * <code>WINDOW_MODE_TUMBLING = 2;</code> */ public static final int WINDOW_MODE_TUMBLING_VALUE = 2; /** * <code>WINDOW_MODE_CDC = 3;</code> */ public static final int WINDOW_MODE_CDC_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 WindowMode 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 WindowMode forNumber(int value) { switch (value) { case 0: return WINDOW_MODE_UNSPECIFIED; case 1: return WINDOW_MODE_CONTINUOUS; case 2: return WINDOW_MODE_TUMBLING; case 3: return WINDOW_MODE_CDC; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<WindowMode> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< WindowMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<WindowMode>() { public WindowMode findValueByNumber(int number) { return WindowMode.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.graph.v1.GraphProto.getDescriptor().getEnumTypes().get(3); } private static final WindowMode[] VALUES = values(); public static WindowMode 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 WindowMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:chalk.graph.v1.WindowMode) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/WindowedFeatureType.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; /** * Protobuf type {@code chalk.graph.v1.WindowedFeatureType} */ public final class WindowedFeatureType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.graph.v1.WindowedFeatureType) WindowedFeatureTypeOrBuilder { private static final long serialVersionUID = 0L; // Use WindowedFeatureType.newBuilder() to construct. private WindowedFeatureType(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private WindowedFeatureType() { name_ = ""; namespace_ = ""; windowDurations_ = java.util.Collections.emptyList(); attributeName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WindowedFeatureType(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_WindowedFeatureType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_WindowedFeatureType_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.WindowedFeatureType.class, ai.chalk.protos.chalk.graph.v1.WindowedFeatureType.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 NAMESPACE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; /** * <code>string namespace = 2 [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 = 2 [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 IS_AUTOGENERATED_FIELD_NUMBER = 3; private boolean isAutogenerated_ = false; /** * <code>bool is_autogenerated = 3 [json_name = "isAutogenerated"];</code> * @return The isAutogenerated. */ @java.lang.Override public boolean getIsAutogenerated() { return isAutogenerated_; } public static final int WINDOW_DURATIONS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List<com.google.protobuf.Duration> windowDurations_; /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ @java.lang.Override public java.util.List<com.google.protobuf.Duration> getWindowDurationsList() { return windowDurations_; } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ @java.lang.Override public java.util.List<? extends com.google.protobuf.DurationOrBuilder> getWindowDurationsOrBuilderList() { return windowDurations_; } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ @java.lang.Override public int getWindowDurationsCount() { return windowDurations_.size(); } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ @java.lang.Override public com.google.protobuf.Duration getWindowDurations(int index) { return windowDurations_.get(index); } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getWindowDurationsOrBuilder( int index) { return windowDurations_.get(index); } public static final int ATTRIBUTE_NAME_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object attributeName_ = ""; /** * <code>string attribute_name = 5 [json_name = "attributeName"];</code> * @return The attributeName. */ @java.lang.Override public java.lang.String getAttributeName() { java.lang.Object ref = attributeName_; 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(); attributeName_ = s; return s; } } /** * <code>string attribute_name = 5 [json_name = "attributeName"];</code> * @return The bytes for attributeName. */ @java.lang.Override public com.google.protobuf.ByteString getAttributeNameBytes() { java.lang.Object ref = attributeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attributeName_ = 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(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); } if (isAutogenerated_ != false) { output.writeBool(3, isAutogenerated_); } for (int i = 0; i < windowDurations_.size(); i++) { output.writeMessage(4, windowDurations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, attributeName_); } 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(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } if (isAutogenerated_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isAutogenerated_); } for (int i = 0; i < windowDurations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, windowDurations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, attributeName_); } 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.graph.v1.WindowedFeatureType)) { return super.equals(obj); } ai.chalk.protos.chalk.graph.v1.WindowedFeatureType other = (ai.chalk.protos.chalk.graph.v1.WindowedFeatureType) obj; if (!getName() .equals(other.getName())) return false; if (!getNamespace() .equals(other.getNamespace())) return false; if (getIsAutogenerated() != other.getIsAutogenerated()) return false; if (!getWindowDurationsList() .equals(other.getWindowDurationsList())) return false; if (!getAttributeName() .equals(other.getAttributeName())) 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) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (37 * hash) + IS_AUTOGENERATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsAutogenerated()); if (getWindowDurationsCount() > 0) { hash = (37 * hash) + WINDOW_DURATIONS_FIELD_NUMBER; hash = (53 * hash) + getWindowDurationsList().hashCode(); } hash = (37 * hash) + ATTRIBUTE_NAME_FIELD_NUMBER; hash = (53 * hash) + getAttributeName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.graph.v1.WindowedFeatureType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.WindowedFeatureType 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.graph.v1.WindowedFeatureType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.WindowedFeatureType 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.graph.v1.WindowedFeatureType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.graph.v1.WindowedFeatureType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.graph.v1.WindowedFeatureType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.WindowedFeatureType 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.graph.v1.WindowedFeatureType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.WindowedFeatureType 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.graph.v1.WindowedFeatureType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.graph.v1.WindowedFeatureType 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.graph.v1.WindowedFeatureType 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.graph.v1.WindowedFeatureType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.graph.v1.WindowedFeatureType) ai.chalk.protos.chalk.graph.v1.WindowedFeatureTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_WindowedFeatureType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_WindowedFeatureType_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.graph.v1.WindowedFeatureType.class, ai.chalk.protos.chalk.graph.v1.WindowedFeatureType.Builder.class); } // Construct using ai.chalk.protos.chalk.graph.v1.WindowedFeatureType.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; namespace_ = ""; isAutogenerated_ = false; if (windowDurationsBuilder_ == null) { windowDurations_ = java.util.Collections.emptyList(); } else { windowDurations_ = null; windowDurationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); attributeName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.graph.v1.GraphProto.internal_static_chalk_graph_v1_WindowedFeatureType_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowedFeatureType getDefaultInstanceForType() { return ai.chalk.protos.chalk.graph.v1.WindowedFeatureType.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowedFeatureType build() { ai.chalk.protos.chalk.graph.v1.WindowedFeatureType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowedFeatureType buildPartial() { ai.chalk.protos.chalk.graph.v1.WindowedFeatureType result = new ai.chalk.protos.chalk.graph.v1.WindowedFeatureType(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.graph.v1.WindowedFeatureType result) { if (windowDurationsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { windowDurations_ = java.util.Collections.unmodifiableList(windowDurations_); bitField0_ = (bitField0_ & ~0x00000008); } result.windowDurations_ = windowDurations_; } else { result.windowDurations_ = windowDurationsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.graph.v1.WindowedFeatureType result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.namespace_ = namespace_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.isAutogenerated_ = isAutogenerated_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.attributeName_ = attributeName_; } } @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.graph.v1.WindowedFeatureType) { return mergeFrom((ai.chalk.protos.chalk.graph.v1.WindowedFeatureType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.graph.v1.WindowedFeatureType other) { if (other == ai.chalk.protos.chalk.graph.v1.WindowedFeatureType.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; bitField0_ |= 0x00000002; onChanged(); } if (other.getIsAutogenerated() != false) { setIsAutogenerated(other.getIsAutogenerated()); } if (windowDurationsBuilder_ == null) { if (!other.windowDurations_.isEmpty()) { if (windowDurations_.isEmpty()) { windowDurations_ = other.windowDurations_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureWindowDurationsIsMutable(); windowDurations_.addAll(other.windowDurations_); } onChanged(); } } else { if (!other.windowDurations_.isEmpty()) { if (windowDurationsBuilder_.isEmpty()) { windowDurationsBuilder_.dispose(); windowDurationsBuilder_ = null; windowDurations_ = other.windowDurations_; bitField0_ = (bitField0_ & ~0x00000008); windowDurationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWindowDurationsFieldBuilder() : null; } else { windowDurationsBuilder_.addAllMessages(other.windowDurations_); } } } if (!other.getAttributeName().isEmpty()) { attributeName_ = other.attributeName_; bitField0_ |= 0x00000010; 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: { namespace_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { isAutogenerated_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { com.google.protobuf.Duration m = input.readMessage( com.google.protobuf.Duration.parser(), extensionRegistry); if (windowDurationsBuilder_ == null) { ensureWindowDurationsIsMutable(); windowDurations_.add(m); } else { windowDurationsBuilder_.addMessage(m); } break; } // case 34 case 42: { attributeName_ = input.readStringRequireUtf8(); 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.lang.Object namespace_ = ""; /** * <code>string namespace = 2 [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 = 2 [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 = 2 [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_ |= 0x00000002; onChanged(); return this; } /** * <code>string namespace = 2 [json_name = "namespace"];</code> * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string namespace = 2 [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_ |= 0x00000002; onChanged(); return this; } private boolean isAutogenerated_ ; /** * <code>bool is_autogenerated = 3 [json_name = "isAutogenerated"];</code> * @return The isAutogenerated. */ @java.lang.Override public boolean getIsAutogenerated() { return isAutogenerated_; } /** * <code>bool is_autogenerated = 3 [json_name = "isAutogenerated"];</code> * @param value The isAutogenerated to set. * @return This builder for chaining. */ public Builder setIsAutogenerated(boolean value) { isAutogenerated_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>bool is_autogenerated = 3 [json_name = "isAutogenerated"];</code> * @return This builder for chaining. */ public Builder clearIsAutogenerated() { bitField0_ = (bitField0_ & ~0x00000004); isAutogenerated_ = false; onChanged(); return this; } private java.util.List<com.google.protobuf.Duration> windowDurations_ = java.util.Collections.emptyList(); private void ensureWindowDurationsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { windowDurations_ = new java.util.ArrayList<com.google.protobuf.Duration>(windowDurations_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> windowDurationsBuilder_; /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public java.util.List<com.google.protobuf.Duration> getWindowDurationsList() { if (windowDurationsBuilder_ == null) { return java.util.Collections.unmodifiableList(windowDurations_); } else { return windowDurationsBuilder_.getMessageList(); } } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public int getWindowDurationsCount() { if (windowDurationsBuilder_ == null) { return windowDurations_.size(); } else { return windowDurationsBuilder_.getCount(); } } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public com.google.protobuf.Duration getWindowDurations(int index) { if (windowDurationsBuilder_ == null) { return windowDurations_.get(index); } else { return windowDurationsBuilder_.getMessage(index); } } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public Builder setWindowDurations( int index, com.google.protobuf.Duration value) { if (windowDurationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWindowDurationsIsMutable(); windowDurations_.set(index, value); onChanged(); } else { windowDurationsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public Builder setWindowDurations( int index, com.google.protobuf.Duration.Builder builderForValue) { if (windowDurationsBuilder_ == null) { ensureWindowDurationsIsMutable(); windowDurations_.set(index, builderForValue.build()); onChanged(); } else { windowDurationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public Builder addWindowDurations(com.google.protobuf.Duration value) { if (windowDurationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWindowDurationsIsMutable(); windowDurations_.add(value); onChanged(); } else { windowDurationsBuilder_.addMessage(value); } return this; } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public Builder addWindowDurations( int index, com.google.protobuf.Duration value) { if (windowDurationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWindowDurationsIsMutable(); windowDurations_.add(index, value); onChanged(); } else { windowDurationsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public Builder addWindowDurations( com.google.protobuf.Duration.Builder builderForValue) { if (windowDurationsBuilder_ == null) { ensureWindowDurationsIsMutable(); windowDurations_.add(builderForValue.build()); onChanged(); } else { windowDurationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public Builder addWindowDurations( int index, com.google.protobuf.Duration.Builder builderForValue) { if (windowDurationsBuilder_ == null) { ensureWindowDurationsIsMutable(); windowDurations_.add(index, builderForValue.build()); onChanged(); } else { windowDurationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public Builder addAllWindowDurations( java.lang.Iterable<? extends com.google.protobuf.Duration> values) { if (windowDurationsBuilder_ == null) { ensureWindowDurationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, windowDurations_); onChanged(); } else { windowDurationsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public Builder clearWindowDurations() { if (windowDurationsBuilder_ == null) { windowDurations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { windowDurationsBuilder_.clear(); } return this; } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public Builder removeWindowDurations(int index) { if (windowDurationsBuilder_ == null) { ensureWindowDurationsIsMutable(); windowDurations_.remove(index); onChanged(); } else { windowDurationsBuilder_.remove(index); } return this; } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public com.google.protobuf.Duration.Builder getWindowDurationsBuilder( int index) { return getWindowDurationsFieldBuilder().getBuilder(index); } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public com.google.protobuf.DurationOrBuilder getWindowDurationsOrBuilder( int index) { if (windowDurationsBuilder_ == null) { return windowDurations_.get(index); } else { return windowDurationsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public java.util.List<? extends com.google.protobuf.DurationOrBuilder> getWindowDurationsOrBuilderList() { if (windowDurationsBuilder_ != null) { return windowDurationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(windowDurations_); } } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public com.google.protobuf.Duration.Builder addWindowDurationsBuilder() { return getWindowDurationsFieldBuilder().addBuilder( com.google.protobuf.Duration.getDefaultInstance()); } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public com.google.protobuf.Duration.Builder addWindowDurationsBuilder( int index) { return getWindowDurationsFieldBuilder().addBuilder( index, com.google.protobuf.Duration.getDefaultInstance()); } /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ public java.util.List<com.google.protobuf.Duration.Builder> getWindowDurationsBuilderList() { return getWindowDurationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getWindowDurationsFieldBuilder() { if (windowDurationsBuilder_ == null) { windowDurationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( windowDurations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); windowDurations_ = null; } return windowDurationsBuilder_; } private java.lang.Object attributeName_ = ""; /** * <code>string attribute_name = 5 [json_name = "attributeName"];</code> * @return The attributeName. */ public java.lang.String getAttributeName() { java.lang.Object ref = attributeName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attributeName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string attribute_name = 5 [json_name = "attributeName"];</code> * @return The bytes for attributeName. */ public com.google.protobuf.ByteString getAttributeNameBytes() { java.lang.Object ref = attributeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); attributeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string attribute_name = 5 [json_name = "attributeName"];</code> * @param value The attributeName to set. * @return This builder for chaining. */ public Builder setAttributeName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } attributeName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>string attribute_name = 5 [json_name = "attributeName"];</code> * @return This builder for chaining. */ public Builder clearAttributeName() { attributeName_ = getDefaultInstance().getAttributeName(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * <code>string attribute_name = 5 [json_name = "attributeName"];</code> * @param value The bytes for attributeName to set. * @return This builder for chaining. */ public Builder setAttributeNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); attributeName_ = value; bitField0_ |= 0x00000010; 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.graph.v1.WindowedFeatureType) } // @@protoc_insertion_point(class_scope:chalk.graph.v1.WindowedFeatureType) private static final ai.chalk.protos.chalk.graph.v1.WindowedFeatureType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.graph.v1.WindowedFeatureType(); } public static ai.chalk.protos.chalk.graph.v1.WindowedFeatureType getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<WindowedFeatureType> PARSER = new com.google.protobuf.AbstractParser<WindowedFeatureType>() { @java.lang.Override public WindowedFeatureType 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<WindowedFeatureType> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<WindowedFeatureType> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.graph.v1.WindowedFeatureType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/graph/v1/WindowedFeatureTypeOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/graph/v1/graph.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.graph.v1; public interface WindowedFeatureTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.graph.v1.WindowedFeatureType) 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 namespace = 2 [json_name = "namespace"];</code> * @return The namespace. */ java.lang.String getNamespace(); /** * <code>string namespace = 2 [json_name = "namespace"];</code> * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** * <code>bool is_autogenerated = 3 [json_name = "isAutogenerated"];</code> * @return The isAutogenerated. */ boolean getIsAutogenerated(); /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ java.util.List<com.google.protobuf.Duration> getWindowDurationsList(); /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ com.google.protobuf.Duration getWindowDurations(int index); /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ int getWindowDurationsCount(); /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ java.util.List<? extends com.google.protobuf.DurationOrBuilder> getWindowDurationsOrBuilderList(); /** * <code>repeated .google.protobuf.Duration window_durations = 4 [json_name = "windowDurations"];</code> */ com.google.protobuf.DurationOrBuilder getWindowDurationsOrBuilder( int index); /** * <code>string attribute_name = 5 [json_name = "attributeName"];</code> * @return The attributeName. */ java.lang.String getAttributeName(); /** * <code>string attribute_name = 5 [json_name = "attributeName"];</code> * @return The bytes for attributeName. */ com.google.protobuf.ByteString getAttributeNameBytes(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/kubernetes
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/kubernetes/v1/KubernetesNodeData.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/kubernetes/v1/nodes.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.kubernetes.v1; /** * <pre> * InstanceUsage is a message that represents the usage of a single instance. * </pre> * * Protobuf type {@code chalk.kubernetes.v1.KubernetesNodeData} */ public final class KubernetesNodeData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesNodeData) KubernetesNodeDataOrBuilder { private static final long serialVersionUID = 0L; // Use KubernetesNodeData.newBuilder() to construct. private KubernetesNodeData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private KubernetesNodeData() { 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 KubernetesNodeData(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.NodesProto.internal_static_chalk_kubernetes_v1_KubernetesNodeData_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.kubernetes.v1.NodesProto.internal_static_chalk_kubernetes_v1_KubernetesNodeData_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData.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"];</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"];</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"];</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.kubernetes.v1.NodesProto.internal_static_chalk_kubernetes_v1_KubernetesNodeData_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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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.kubernetes.v1.NodesProto.internal_static_chalk_kubernetes_v1_KubernetesNodeData_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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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.kubernetes.v1.KubernetesNodeData)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData) 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.kubernetes.v1.KubernetesNodeData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData 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.kubernetes.v1.KubernetesNodeData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData 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.kubernetes.v1.KubernetesNodeData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData 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.kubernetes.v1.KubernetesNodeData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData 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.kubernetes.v1.KubernetesNodeData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData 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.kubernetes.v1.KubernetesNodeData 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.kubernetes.v1.KubernetesNodeData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesNodeData) ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.NodesProto.internal_static_chalk_kubernetes_v1_KubernetesNodeData_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.kubernetes.v1.NodesProto.internal_static_chalk_kubernetes_v1_KubernetesNodeData_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData.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.kubernetes.v1.NodesProto.internal_static_chalk_kubernetes_v1_KubernetesNodeData_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData 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.kubernetes.v1.KubernetesNodeData) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData.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"];</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"];</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"];</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"];</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"];</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"];</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"];</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"];</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"];</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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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.kubernetes.v1.KubernetesNodeData) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesNodeData) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<KubernetesNodeData> PARSER = new com.google.protobuf.AbstractParser<KubernetesNodeData>() { @java.lang.Override public KubernetesNodeData 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<KubernetesNodeData> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<KubernetesNodeData> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesNodeData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/kubernetes
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/kubernetes/v1/KubernetesNodeDataOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/kubernetes/v1/nodes.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.kubernetes.v1; public interface KubernetesNodeDataOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesNodeData) 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"];</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"];</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"];</code> * @return The observedTimestamp. */ long getObservedTimestamp(); /** * <pre> * node.Labels * </pre> * * <code>map&lt;string, string&gt; labels = 11 [json_name = "labels"];</code> */ int getLabelsCount(); /** * <pre> * node.Labels * </pre> * * <code>map&lt;string, string&gt; 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&lt;string, string&gt; labels = 11 [json_name = "labels"];</code> */ java.util.Map<java.lang.String, java.lang.String> getLabelsMap(); /** * <pre> * node.Labels * </pre> * * <code>map&lt;string, string&gt; 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&lt;string, string&gt; labels = 11 [json_name = "labels"];</code> */ java.lang.String getLabelsOrThrow( java.lang.String key); /** * <pre> * node.Annotations * </pre> * * <code>map&lt;string, string&gt; annotations = 12 [json_name = "annotations"];</code> */ int getAnnotationsCount(); /** * <pre> * node.Annotations * </pre> * * <code>map&lt;string, string&gt; 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&lt;string, string&gt; annotations = 12 [json_name = "annotations"];</code> */ java.util.Map<java.lang.String, java.lang.String> getAnnotationsMap(); /** * <pre> * node.Annotations * </pre> * * <code>map&lt;string, string&gt; 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&lt;string, string&gt; 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/kubernetes
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/kubernetes/v1/KubernetesPodData.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/kubernetes/v1/pods.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.kubernetes.v1; /** * <pre> * PodStatusPubSub captures the state of a kubernetes pod. * </pre> * * Protobuf type {@code chalk.kubernetes.v1.KubernetesPodData} */ public final class KubernetesPodData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData) KubernetesPodDataOrBuilder { private static final long serialVersionUID = 0L; // Use KubernetesPodData.newBuilder() to construct. private KubernetesPodData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private KubernetesPodData() { team_ = ""; app_ = ""; component_ = ""; datadogService_ = ""; datadogVersion_ = ""; podTemplateHash_ = ""; cluster_ = ""; uid_ = ""; name_ = ""; namespace_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new KubernetesPodData(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Builder.class); } public interface VolumeOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume} */ public static final class Volume extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_Volume_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.Volume) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.VolumeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_Volume_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_Volume_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.Volume) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClaimSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource} */ public static final class ClaimSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ClaimSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ClaimSource_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.ClaimSource) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ClaimSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ClaimSource_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ClaimSource_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.ClaimSource) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodResourceClaimOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource source = 2 [json_name = "source"];</code> * @return The source. */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource getSource(); /** * <pre> * Source describes where to find the ResourceClaim. * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ClaimSource source = 2 [json_name = "source"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim} */ public static final class PodResourceClaim extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodResourceClaim_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodResourceClaim_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource source_; /** * <pre> * Source describes where to find the ResourceClaim. * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource source = 2 [json_name = "source"];</code> * @return The source. */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource getSource() { return source_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource.getDefaultInstance() : source_; } /** * <pre> * Source describes where to find the ResourceClaim. * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ClaimSource source = 2 [json_name = "source"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSourceOrBuilder getSourceOrBuilder() { return source_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaimOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodResourceClaim_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodResourceClaim_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodResourceClaim_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource source_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSourceOrBuilder> sourceBuilder_; /** * <pre> * Source describes where to find the ResourceClaim. * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource source = 2 [json_name = "source"];</code> * @return The source. */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource getSource() { if (sourceBuilder_ == null) { return source_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * <pre> * Source describes where to find the ResourceClaim. * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ClaimSource source = 2 [json_name = "source"];</code> */ public Builder setSource(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource source = 2 [json_name = "source"];</code> */ public Builder setSource( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource source = 2 [json_name = "source"];</code> */ public Builder mergeSource(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource value) { if (sourceBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && source_ != null && source_ != ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ClaimSource source = 2 [json_name = "source"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource.Builder getSourceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * <pre> * Source describes where to find the ResourceClaim. * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ClaimSource source = 2 [json_name = "source"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource.getDefaultInstance() : source_; } } /** * <pre> * Source describes where to find the ResourceClaim. * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ClaimSource source = 2 [json_name = "source"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ClaimSource.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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 "&lt;hostname&gt;.&lt;subdomain&gt;.&lt;pod namespace&gt;.svc.&lt;cluster domain&gt;". * 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 "&lt;hostname&gt;.&lt;subdomain&gt;.&lt;pod namespace&gt;.svc.&lt;cluster domain&gt;". * 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 "&lt;hostname&gt;.&lt;subdomain&gt;.&lt;pod namespace&gt;.svc.&lt;cluster domain&gt;". * 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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaimOrBuilder getResourceClaimsOrBuilder( int index); } /** * <pre> * PodSpec is a description of a pod. * </pre> * * Protobuf type {@code chalk.kubernetes.v1.KubernetesPodData.PodSpec} */ public static final class PodSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec.Builder.class); } private int bitField0_; public static final int VOLUMES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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 "&lt;hostname&gt;.&lt;subdomain&gt;.&lt;pod namespace&gt;.svc.&lt;cluster domain&gt;". * 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 "&lt;hostname&gt;.&lt;subdomain&gt;.&lt;pod namespace&gt;.svc.&lt;cluster domain&gt;". * 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 "&lt;hostname&gt;.&lt;subdomain&gt;.&lt;pod namespace&gt;.svc.&lt;cluster domain&gt;". * 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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodSpec)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.PodSpec) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodSpec_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodSpec) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume m = input.readMessage( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume.parser(), extensionRegistry); if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(m); } else { volumesBuilder_.addMessage(m); } break; } // case 10 case 18: { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container m = input.readMessage( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container m = input.readMessage( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim m = input.readMessage( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume> volumes_ = java.util.Collections.emptyList(); private void ensureVolumesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { volumes_ = new java.util.ArrayList<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume>(volumes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ public Builder setVolumes( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ public Builder setVolumes( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ public Builder addVolumes(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ public Builder addVolumes( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ public Builder addVolumes( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ public Builder addVolumes( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ public Builder addAllVolumes( java.lang.Iterable<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume.Builder addVolumesBuilder() { return getVolumesFieldBuilder().addBuilder( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume.Builder addVolumesBuilder( int index) { return getVolumesFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Volume volumes = 1 [json_name = "volumes"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume.Builder> getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Volume.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.VolumeOrBuilder>( volumes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); volumes_ = null; } return volumesBuilder_; } private java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container> initContainers_ = java.util.Collections.emptyList(); private void ensureInitContainersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { initContainers_ = new java.util.ArrayList<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container>(initContainers_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ public Builder setInitContainers( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ public Builder setInitContainers( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ public Builder addInitContainers(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ public Builder addInitContainers( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ public Builder addInitContainers( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ public Builder addInitContainers( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ public Builder addAllInitContainers( java.lang.Iterable<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.Builder addInitContainersBuilder() { return getInitContainersFieldBuilder().addBuilder( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.Builder addInitContainersBuilder( int index) { return getInitContainersFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container init_containers = 20 [json_name = "initContainers"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.Builder> getInitContainersBuilderList() { return getInitContainersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerOrBuilder> getInitContainersFieldBuilder() { if (initContainersBuilder_ == null) { initContainersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerOrBuilder>( initContainers_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); initContainers_ = null; } return initContainersBuilder_; } private java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container> containers_ = java.util.Collections.emptyList(); private void ensureContainersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { containers_ = new java.util.ArrayList<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container>(containers_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ public Builder setContainers( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ public Builder setContainers( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ public Builder addContainers(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ public Builder addContainers( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ public Builder addContainers( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ public Builder addContainers( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ public Builder addAllContainers( java.lang.Iterable<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.Builder addContainersBuilder() { return getContainersFieldBuilder().addBuilder( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.Builder addContainersBuilder( int index) { return getContainersFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container containers = 2 [json_name = "containers"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.Builder> getContainersBuilderList() { return getContainersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerOrBuilder> getContainersFieldBuilder() { if (containersBuilder_ == null) { containersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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 "&lt;hostname&gt;.&lt;subdomain&gt;.&lt;pod namespace&gt;.svc.&lt;cluster domain&gt;". * 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 "&lt;hostname&gt;.&lt;subdomain&gt;.&lt;pod namespace&gt;.svc.&lt;cluster domain&gt;". * 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 "&lt;hostname&gt;.&lt;subdomain&gt;.&lt;pod namespace&gt;.svc.&lt;cluster domain&gt;". * 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 "&lt;hostname&gt;.&lt;subdomain&gt;.&lt;pod namespace&gt;.svc.&lt;cluster domain&gt;". * 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 "&lt;hostname&gt;.&lt;subdomain&gt;.&lt;pod namespace&gt;.svc.&lt;cluster domain&gt;". * 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 "&lt;hostname&gt;.&lt;subdomain&gt;.&lt;pod namespace&gt;.svc.&lt;cluster domain&gt;". * 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.kubernetes.v1.KubernetesPodData.PodResourceClaim> resourceClaims_ = java.util.Collections.emptyList(); private void ensureResourceClaimsIsMutable() { if (!((bitField0_ & 0x01000000) != 0)) { resourceClaims_ = new java.util.ArrayList<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim>(resourceClaims_); bitField0_ |= 0x01000000; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ public Builder setResourceClaims( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ public Builder setResourceClaims( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ public Builder addResourceClaims(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ public Builder addResourceClaims( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ public Builder addResourceClaims( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ public Builder addResourceClaims( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ public Builder addAllResourceClaims( java.lang.Iterable<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim.Builder addResourceClaimsBuilder() { return getResourceClaimsFieldBuilder().addBuilder( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim.Builder addResourceClaimsBuilder( int index) { return getResourceClaimsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodResourceClaim resource_claims = 39 [json_name = "resourceClaims"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim.Builder> getResourceClaimsBuilderList() { return getResourceClaimsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaimOrBuilder> getResourceClaimsFieldBuilder() { if (resourceClaimsBuilder_ == null) { resourceClaimsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodResourceClaim.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodSpec) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.PodSpec) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerStateOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.ContainerState) com.google.protobuf.MessageOrBuilder { /** * <pre> * Details about a waiting container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code> * @return The waiting. */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting getWaiting(); /** * <pre> * Details about a waiting container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaitingOrBuilder getWaitingOrBuilder(); /** * <pre> * Details about a running container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateRunning running = 2 [json_name = "running"];</code> * @return The running. */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning getRunning(); /** * <pre> * Details about a running container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning running = 2 [json_name = "running"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunningOrBuilder getRunningOrBuilder(); /** * <pre> * Details about a terminated container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code> * @return The terminated. */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated getTerminated(); /** * <pre> * Details about a terminated container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState} */ public static final class ContainerState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerState_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.Builder.class); } private int bitField0_; public static final int WAITING_FIELD_NUMBER = 1; private ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting waiting_; /** * <pre> * Details about a waiting container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code> * @return The waiting. */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting getWaiting() { return waiting_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting.getDefaultInstance() : waiting_; } /** * <pre> * Details about a waiting container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaitingOrBuilder getWaitingOrBuilder() { return waiting_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting.getDefaultInstance() : waiting_; } public static final int RUNNING_FIELD_NUMBER = 2; private ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning running_; /** * <pre> * Details about a running container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateRunning running = 2 [json_name = "running"];</code> * @return The running. */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning getRunning() { return running_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning.getDefaultInstance() : running_; } /** * <pre> * Details about a running container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning running = 2 [json_name = "running"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunningOrBuilder getRunningOrBuilder() { return running_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning.getDefaultInstance() : running_; } public static final int TERMINATED_FIELD_NUMBER = 3; private ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated terminated_; /** * <pre> * Details about a terminated container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code> * @return The terminated. */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated getTerminated() { return terminated_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated.getDefaultInstance() : terminated_; } /** * <pre> * Details about a terminated container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminatedOrBuilder getTerminatedOrBuilder() { return terminated_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.ContainerState) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerState_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerState_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting waiting_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaitingOrBuilder> waitingBuilder_; /** * <pre> * Details about a waiting container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code> * @return The waiting. */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting getWaiting() { if (waitingBuilder_ == null) { return waiting_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting.getDefaultInstance() : waiting_; } else { return waitingBuilder_.getMessage(); } } /** * <pre> * Details about a waiting container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code> */ public Builder setWaiting(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code> */ public Builder setWaiting( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code> */ public Builder mergeWaiting(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting value) { if (waitingBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && waiting_ != null && waiting_ != ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting.Builder getWaitingBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWaitingFieldBuilder().getBuilder(); } /** * <pre> * Details about a waiting container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaitingOrBuilder getWaitingOrBuilder() { if (waitingBuilder_ != null) { return waitingBuilder_.getMessageOrBuilder(); } else { return waiting_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting.getDefaultInstance() : waiting_; } } /** * <pre> * Details about a waiting container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting waiting = 1 [json_name = "waiting"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaitingOrBuilder> getWaitingFieldBuilder() { if (waitingBuilder_ == null) { waitingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaitingOrBuilder>( getWaiting(), getParentForChildren(), isClean()); waiting_ = null; } return waitingBuilder_; } private ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning running_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunningOrBuilder> runningBuilder_; /** * <pre> * Details about a running container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateRunning running = 2 [json_name = "running"];</code> * @return The running. */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning getRunning() { if (runningBuilder_ == null) { return running_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning.getDefaultInstance() : running_; } else { return runningBuilder_.getMessage(); } } /** * <pre> * Details about a running container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning running = 2 [json_name = "running"];</code> */ public Builder setRunning(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateRunning running = 2 [json_name = "running"];</code> */ public Builder setRunning( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateRunning running = 2 [json_name = "running"];</code> */ public Builder mergeRunning(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning value) { if (runningBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && running_ != null && running_ != ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateRunning running = 2 [json_name = "running"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning.Builder getRunningBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRunningFieldBuilder().getBuilder(); } /** * <pre> * Details about a running container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning running = 2 [json_name = "running"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunningOrBuilder getRunningOrBuilder() { if (runningBuilder_ != null) { return runningBuilder_.getMessageOrBuilder(); } else { return running_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning.getDefaultInstance() : running_; } } /** * <pre> * Details about a running container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning running = 2 [json_name = "running"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunningOrBuilder> getRunningFieldBuilder() { if (runningBuilder_ == null) { runningBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunningOrBuilder>( getRunning(), getParentForChildren(), isClean()); running_ = null; } return runningBuilder_; } private ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated terminated_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminatedOrBuilder> terminatedBuilder_; /** * <pre> * Details about a terminated container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code> * @return The terminated. */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated getTerminated() { if (terminatedBuilder_ == null) { return terminated_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated.getDefaultInstance() : terminated_; } else { return terminatedBuilder_.getMessage(); } } /** * <pre> * Details about a terminated container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code> */ public Builder setTerminated(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code> */ public Builder setTerminated( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code> */ public Builder mergeTerminated(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated value) { if (terminatedBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && terminated_ != null && terminated_ != ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated.Builder getTerminatedBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTerminatedFieldBuilder().getBuilder(); } /** * <pre> * Details about a terminated container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminatedOrBuilder getTerminatedOrBuilder() { if (terminatedBuilder_ != null) { return terminatedBuilder_.getMessageOrBuilder(); } else { return terminated_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated.getDefaultInstance() : terminated_; } } /** * <pre> * Details about a terminated container * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated terminated = 3 [json_name = "terminated"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminatedOrBuilder> getTerminatedFieldBuilder() { if (terminatedBuilder_ == null) { terminatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.ContainerState) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerStateRunningOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.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"];</code> * @return The startedAt. */ long getStartedAt(); } /** * <pre> * ContainerStateRunning is a running state of a container. * </pre> * * Protobuf type {@code chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning} */ public static final class ContainerStateRunning extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateRunning_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateRunning_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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"];</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.kubernetes.v1.KubernetesPodData.ContainerStateRunning)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateRunning parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateRunning parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateRunning parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateRunning parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateRunning parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateRunning} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunningOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateRunning_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateRunning_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateRunning_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateRunning) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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"];</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"];</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"];</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.kubernetes.v1.KubernetesPodData.ContainerStateRunning) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateRunning(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateRunning getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerStateTerminatedOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.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"];</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"];</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"];</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"];</code> * @return The finishedAt. */ long getFinishedAt(); /** * <pre> * Container's ID in the format '&lt;type&gt;://&lt;container_id&gt;' * +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 '&lt;type&gt;://&lt;container_id&gt;' * +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 '&lt;type&gt;://&lt;container_id&gt;' * +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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated} */ public static final class ContainerStateTerminated extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateTerminated_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateTerminated_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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"];</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"];</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"];</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"];</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 '&lt;type&gt;://&lt;container_id&gt;' * +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 '&lt;type&gt;://&lt;container_id&gt;' * +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 '&lt;type&gt;://&lt;container_id&gt;' * +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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminatedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateTerminated_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateTerminated_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateTerminated_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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"];</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"];</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"];</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"];</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"];</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"];</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"];</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"];</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 '&lt;type&gt;://&lt;container_id&gt;' * +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 '&lt;type&gt;://&lt;container_id&gt;' * +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 '&lt;type&gt;://&lt;container_id&gt;' * +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 '&lt;type&gt;://&lt;container_id&gt;' * +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 '&lt;type&gt;://&lt;container_id&gt;' * +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 '&lt;type&gt;://&lt;container_id&gt;' * +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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateTerminated(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateTerminated getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnvVarOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar} */ public static final class EnvVar extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_EnvVar_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_EnvVar_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.EnvVar) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVarOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_EnvVar_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_EnvVar_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_EnvVar_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.EnvVar) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements resources = 8 [json_name = "resources"];</code> * @return The resources. */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements resources = 8 [json_name = "resources"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container} */ public static final class Container extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_Container_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVarOrBuilder getEnvOrBuilder( int index) { return env_.get(index); } public static final int RESOURCES_FIELD_NUMBER = 8; private ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements resources = 8 [json_name = "resources"];</code> * @return The resources. */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements getResources() { return resources_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements resources = 8 [json_name = "resources"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirementsOrBuilder getResourcesOrBuilder() { return resources_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.Container) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_Container_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_Container_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar m = input.readMessage( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar> env_ = java.util.Collections.emptyList(); private void ensureEnvIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { env_ = new java.util.ArrayList<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar>(env_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ public Builder setEnv( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ public Builder setEnv( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ public Builder addEnv(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ public Builder addEnv( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ public Builder addEnv( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ public Builder addEnv( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ public Builder addAllEnv( java.lang.Iterable<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar.Builder addEnvBuilder() { return getEnvFieldBuilder().addBuilder( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar.Builder addEnvBuilder( int index) { return getEnvFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.EnvVar env = 7 [json_name = "env"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar.Builder> getEnvBuilderList() { return getEnvFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVarOrBuilder> getEnvFieldBuilder() { if (envBuilder_ == null) { envBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVar.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.EnvVarOrBuilder>( env_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); env_ = null; } return envBuilder_; } private ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements resources_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements resources = 8 [json_name = "resources"];</code> * @return The resources. */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements getResources() { if (resourcesBuilder_ == null) { return resources_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements resources = 8 [json_name = "resources"];</code> */ public Builder setResources(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements resources = 8 [json_name = "resources"];</code> */ public Builder setResources( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements resources = 8 [json_name = "resources"];</code> */ public Builder mergeResources(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements value) { if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && resources_ != null && resources_ != ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements resources = 8 [json_name = "resources"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements resources = 8 [json_name = "resources"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirementsOrBuilder getResourcesOrBuilder() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilder(); } else { return resources_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements resources = 8 [json_name = "resources"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirementsOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.Container) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Container(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Container getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerStateWaitingOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting} */ public static final class ContainerStateWaiting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateWaiting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateWaiting_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaitingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateWaiting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateWaiting_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateWaiting_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateWaiting(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStateWaiting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];</code> * @return The state. */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState getState(); /** * <pre> * State holds details about the container's current condition. * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];</code> * @return The lastState. */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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 '&lt;type&gt;://&lt;container_id&gt;'. * 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 '&lt;type&gt;://&lt;container_id&gt;'. * 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.kubernetes.v1.KubernetesPodData.ContainerStatus} */ public static final class ContainerStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState state_; /** * <pre> * State holds details about the container's current condition. * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];</code> * @return The state. */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState getState() { return state_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.getDefaultInstance() : state_; } /** * <pre> * State holds details about the container's current condition. * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateOrBuilder getStateOrBuilder() { return state_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.getDefaultInstance() : state_; } public static final int LAST_STATE_FIELD_NUMBER = 3; private ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];</code> * @return The lastState. */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState getLastState() { return lastState_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateOrBuilder getLastStateOrBuilder() { return lastState_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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 '&lt;type&gt;://&lt;container_id&gt;'. * 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 '&lt;type&gt;://&lt;container_id&gt;'. * 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.kubernetes.v1.KubernetesPodData.ContainerStatus)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.ContainerStatus) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStatus_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState state_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateOrBuilder> stateBuilder_; /** * <pre> * State holds details about the container's current condition. * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];</code> * @return The state. */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState getState() { if (stateBuilder_ == null) { return state_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** * <pre> * State holds details about the container's current condition. * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];</code> */ public Builder setState(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];</code> */ public Builder setState( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];</code> */ public Builder mergeState(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState value) { if (stateBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && state_ != null && state_ != ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.Builder getStateBuilder() { bitField0_ |= 0x00000002; onChanged(); return getStateFieldBuilder().getBuilder(); } /** * <pre> * State holds details about the container's current condition. * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { return state_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.getDefaultInstance() : state_; } } /** * <pre> * State holds details about the container's current condition. * +optional * </pre> * * <code>optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateOrBuilder>( getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } private ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState lastState_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];</code> * @return The lastState. */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState getLastState() { if (lastStateBuilder_ == null) { return lastState_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];</code> */ public Builder setLastState(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];</code> */ public Builder setLastState( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];</code> */ public Builder mergeLastState(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState value) { if (lastStateBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && lastState_ != null && lastState_ != ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateOrBuilder getLastStateOrBuilder() { if (lastStateBuilder_ != null) { return lastStateBuilder_.getMessageOrBuilder(); } else { return lastState_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStateOrBuilder> getLastStateFieldBuilder() { if (lastStateBuilder_ == null) { lastStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerState.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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 '&lt;type&gt;://&lt;container_id&gt;'. * 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 '&lt;type&gt;://&lt;container_id&gt;'. * 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 '&lt;type&gt;://&lt;container_id&gt;'. * 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 '&lt;type&gt;://&lt;container_id&gt;'. * 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 '&lt;type&gt;://&lt;container_id&gt;'. * 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.kubernetes.v1.KubernetesPodData.ContainerStatus) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.ContainerStatus) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QuantityOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Quantity} */ public static final class Quantity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_Quantity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_Quantity_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Quantity)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Quantity parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Quantity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Quantity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Quantity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Quantity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Quantity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.Quantity) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.QuantityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_Quantity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_Quantity_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_Quantity_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Quantity) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Quantity) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.Quantity) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Quantity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceRequirementsOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; 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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; 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.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; limits = 1 [json_name = "limits"];</code> */ java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; limits = 1 [json_name = "limits"];</code> */ /* nullable */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity getLimitsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; limits = 1 [json_name = "limits"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; 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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; 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.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; requests = 2 [json_name = "requests"];</code> */ java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; requests = 2 [json_name = "requests"];</code> */ /* nullable */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity getRequestsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; requests = 2 [json_name = "requests"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity getRequestsOrThrow( java.lang.String key); } /** * Protobuf type {@code chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements} */ public static final class ResourceRequirements extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Quantity> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity>newDefaultInstance( ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_LimitsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity> limits_; private com.google.protobuf.MapField<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; 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.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; limits = 1 [json_name = "limits"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; limits = 1 [json_name = "limits"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity getLimitsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; limits = 1 [json_name = "limits"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity getLimitsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Quantity> defaultEntry = com.google.protobuf.MapEntry .<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity>newDefaultInstance( ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_RequestsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity> requests_; private com.google.protobuf.MapField<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; 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.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; requests = 2 [json_name = "requests"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; requests = 2 [json_name = "requests"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity getRequestsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; requests = 2 [json_name = "requests"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity getRequestsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Quantity> entry : internalGetLimits().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.Quantity> entry : internalGetRequests().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirementsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.QuantityOrBuilder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity> { @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity build(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.QuantityOrBuilder val) { if (val instanceof ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity) { return (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity) val; } return ((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity> defaultEntry() { return LimitsDefaultEntryHolder.defaultEntry; } }; private static final LimitsConverter limitsConverter = new LimitsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.QuantityOrBuilder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity.Builder> limits_; private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.QuantityOrBuilder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.QuantityOrBuilder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; 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.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; limits = 1 [json_name = "limits"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; limits = 1 [json_name = "limits"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity getLimitsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; limits = 1 [json_name = "limits"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity getLimitsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; 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.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; limits = 1 [json_name = "limits"];</code> */ public Builder putLimits( java.lang.String key, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; limits = 1 [json_name = "limits"];</code> */ public Builder putAllLimits( java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity> values) { for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; limits = 1 [json_name = "limits"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity.Builder putLimitsBuilderIfAbsent( java.lang.String key) { java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.QuantityOrBuilder> builderMap = internalGetMutableLimits().ensureBuilderMap(); ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.QuantityOrBuilder entry = builderMap.get(key); if (entry == null) { entry = ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity.newBuilder(); builderMap.put(key, entry); } if (entry instanceof ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity) { entry = ((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity) entry).toBuilder(); builderMap.put(key, entry); } return (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity.Builder) entry; } private static final class RequestsConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.QuantityOrBuilder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity> { @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity build(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.QuantityOrBuilder val) { if (val instanceof ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity) { return (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity) val; } return ((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity> defaultEntry() { return RequestsDefaultEntryHolder.defaultEntry; } }; private static final RequestsConverter requestsConverter = new RequestsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.QuantityOrBuilder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity.Builder> requests_; private com.google.protobuf.MapFieldBuilder<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.QuantityOrBuilder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.QuantityOrBuilder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; 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.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; requests = 2 [json_name = "requests"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; requests = 2 [json_name = "requests"];</code> */ @java.lang.Override public /* nullable */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity getRequestsOrDefault( java.lang.String key, /* nullable */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; requests = 2 [json_name = "requests"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity getRequestsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; 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.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; requests = 2 [json_name = "requests"];</code> */ public Builder putRequests( java.lang.String key, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; requests = 2 [json_name = "requests"];</code> */ public Builder putAllRequests( java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity> values) { for (java.util.Map.Entry<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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&lt;string, .chalk.kubernetes.v1.KubernetesPodData.Quantity&gt; requests = 2 [json_name = "requests"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity.Builder putRequestsBuilderIfAbsent( java.lang.String key) { java.util.Map<java.lang.String, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.QuantityOrBuilder> builderMap = internalGetMutableRequests().ensureBuilderMap(); ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.QuantityOrBuilder entry = builderMap.get(key); if (entry == null) { entry = ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity.newBuilder(); builderMap.put(key, entry); } if (entry instanceof ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity) { entry = ((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Quantity) entry).toBuilder(); builderMap.put(key, entry); } return (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ResourceRequirements(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ResourceRequirements getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.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"];</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"];</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.kubernetes.v1.KubernetesPodData.PodCondition} */ public static final class PodCondition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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"];</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"];</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.kubernetes.v1.KubernetesPodData.PodCondition)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.PodCondition) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodCondition_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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"];</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"];</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"];</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"];</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"];</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"];</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.kubernetes.v1.KubernetesPodData.PodCondition) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.PodCondition) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HostIPOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP} */ public static final class HostIP extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_HostIP_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_HostIP_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.HostIP) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIPOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_HostIP_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_HostIP_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_HostIP_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.HostIP) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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"];</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"];</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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus> getEphemeralContainerStatusesList(); /** * <pre> * Status for any ephemeral containers that have run in this pod. * +optional * +listType=atomic * </pre> * * <code>repeated .chalk.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus getEphemeralContainerStatuses(int index); /** * <pre> * Status for any ephemeral containers that have run in this pod. * +optional * +listType=atomic * </pre> * * <code>repeated .chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatusOrBuilder> getEphemeralContainerStatusesOrBuilderList(); /** * <pre> * Status for any ephemeral containers that have run in this pod. * +optional * +listType=atomic * </pre> * * <code>repeated .chalk.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus} */ public static final class PodStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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"];</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"];</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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus> ephemeralContainerStatuses_; /** * <pre> * Status for any ephemeral containers that have run in this pod. * +optional * +listType=atomic * </pre> * * <code>repeated .chalk.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus> getEphemeralContainerStatusesList() { return ephemeralContainerStatuses_; } /** * <pre> * Status for any ephemeral containers that have run in this pod. * +optional * +listType=atomic * </pre> * * <code>repeated .chalk.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatusOrBuilder> getEphemeralContainerStatusesOrBuilderList() { return ephemeralContainerStatuses_; } /** * <pre> * Status for any ephemeral containers that have run in this pod. * +optional * +listType=atomic * </pre> * * <code>repeated .chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData.PodStatus) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_PodStatus_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition m = input.readMessage( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus m = input.readMessage( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus m = input.readMessage( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus m = input.readMessage( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP m = input.readMessage( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition> conditions_ = java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { conditions_ = new java.util.ArrayList<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition>(conditions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ public Builder setConditions( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ public Builder setConditions( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ public Builder addConditions(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ public Builder addConditions( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ public Builder addConditions( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ public Builder addConditions( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ public Builder addAllConditions( java.lang.Iterable<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition.Builder addConditionsBuilder() { return getConditionsFieldBuilder().addBuilder( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition.Builder addConditionsBuilder( int index) { return getConditionsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodCondition conditions = 2 [json_name = "conditions"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition.Builder> getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodCondition.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP> hostIps_ = java.util.Collections.emptyList(); private void ensureHostIpsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { hostIps_ = new java.util.ArrayList<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP>(hostIps_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ public Builder setHostIps( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ public Builder setHostIps( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ public Builder addHostIps(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ public Builder addHostIps( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ public Builder addHostIps( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ public Builder addHostIps( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ public Builder addAllHostIps( java.lang.Iterable<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP.Builder addHostIpsBuilder() { return getHostIpsFieldBuilder().addBuilder( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP.Builder addHostIpsBuilder( int index) { return getHostIpsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.HostIP host_ips = 16 [json_name = "hostIps"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP.Builder> getHostIpsBuilderList() { return getHostIpsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIPOrBuilder> getHostIpsFieldBuilder() { if (hostIpsBuilder_ == null) { hostIpsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.HostIP.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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"];</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"];</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"];</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"];</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.kubernetes.v1.KubernetesPodData.ContainerStatus> initContainerStatuses_ = java.util.Collections.emptyList(); private void ensureInitContainerStatusesIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { initContainerStatuses_ = new java.util.ArrayList<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus>(initContainerStatuses_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ public Builder setInitContainerStatuses( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ public Builder setInitContainerStatuses( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ public Builder addInitContainerStatuses(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ public Builder addInitContainerStatuses( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ public Builder addInitContainerStatuses( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ public Builder addInitContainerStatuses( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ public Builder addAllInitContainerStatuses( java.lang.Iterable<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder addInitContainerStatusesBuilder() { return getInitContainerStatusesFieldBuilder().addBuilder( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder addInitContainerStatusesBuilder( int index) { return getInitContainerStatusesFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus init_container_statuses = 10 [json_name = "initContainerStatuses"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder> getInitContainerStatusesBuilderList() { return getInitContainerStatusesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatusOrBuilder> getInitContainerStatusesFieldBuilder() { if (initContainerStatusesBuilder_ == null) { initContainerStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatusOrBuilder>( initContainerStatuses_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); initContainerStatuses_ = null; } return initContainerStatusesBuilder_; } private java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus> containerStatuses_ = java.util.Collections.emptyList(); private void ensureContainerStatusesIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { containerStatuses_ = new java.util.ArrayList<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus>(containerStatuses_); bitField0_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ public Builder setContainerStatuses( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ public Builder setContainerStatuses( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ public Builder addContainerStatuses(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ public Builder addContainerStatuses( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ public Builder addContainerStatuses( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ public Builder addContainerStatuses( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ public Builder addAllContainerStatuses( java.lang.Iterable<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder addContainerStatusesBuilder() { return getContainerStatusesFieldBuilder().addBuilder( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder addContainerStatusesBuilder( int index) { return getContainerStatusesFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus container_statuses = 8 [json_name = "containerStatuses"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder> getContainerStatusesBuilderList() { return getContainerStatusesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatusOrBuilder> getContainerStatusesFieldBuilder() { if (containerStatusesBuilder_ == null) { containerStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus> ephemeralContainerStatuses_ = java.util.Collections.emptyList(); private void ensureEphemeralContainerStatusesIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { ephemeralContainerStatuses_ = new java.util.ArrayList<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus>(ephemeralContainerStatuses_); bitField0_ |= 0x00001000; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatusOrBuilder> ephemeralContainerStatusesBuilder_; /** * <pre> * Status for any ephemeral containers that have run in this pod. * +optional * +listType=atomic * </pre> * * <code>repeated .chalk.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ public Builder setEphemeralContainerStatuses( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ public Builder setEphemeralContainerStatuses( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ public Builder addEphemeralContainerStatuses(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ public Builder addEphemeralContainerStatuses( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ public Builder addEphemeralContainerStatuses( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ public Builder addEphemeralContainerStatuses( int index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ public Builder addAllEphemeralContainerStatuses( java.lang.Iterable<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder addEphemeralContainerStatusesBuilder() { return getEphemeralContainerStatusesFieldBuilder().addBuilder( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.getDefaultInstance()); } /** * <pre> * Status for any ephemeral containers that have run in this pod. * +optional * +listType=atomic * </pre> * * <code>repeated .chalk.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder addEphemeralContainerStatusesBuilder( int index) { return getEphemeralContainerStatusesFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.getDefaultInstance()); } /** * <pre> * Status for any ephemeral containers that have run in this pod. * +optional * +listType=atomic * </pre> * * <code>repeated .chalk.kubernetes.v1.KubernetesPodData.ContainerStatus ephemeral_container_statuses = 13 [json_name = "ephemeralContainerStatuses"];</code> */ public java.util.List<ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder> getEphemeralContainerStatusesBuilderList() { return getEphemeralContainerStatusesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatusOrBuilder> getEphemeralContainerStatusesFieldBuilder() { if (ephemeralContainerStatusesBuilder_ == null) { ephemeralContainerStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData.PodStatus) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus status_; /** * <pre> * string status = 7; * </pre> * * <code>.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus status = 7 [json_name = "status"];</code> * @return The status. */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus getStatus() { return status_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus.getDefaultInstance() : status_; } /** * <pre> * string status = 7; * </pre> * * <code>.chalk.kubernetes.v1.KubernetesPodData.PodStatus status = 7 [json_name = "status"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatusOrBuilder getStatusOrBuilder() { return status_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus.getDefaultInstance() : status_; } public static final int SPEC_FIELD_NUMBER = 8; private ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec spec_; /** * <code>.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodSpec spec = 8 [json_name = "spec"];</code> * @return The spec. */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec getSpec() { return spec_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec.getDefaultInstance() : spec_; } /** * <code>.chalk.kubernetes.v1.KubernetesPodData.PodSpec spec = 8 [json_name = "spec"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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"];</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"];</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"];</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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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.kubernetes.v1.KubernetesPodData)) { return super.equals(obj); } ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData other = (ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData) 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.kubernetes.v1.KubernetesPodData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData 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.kubernetes.v1.KubernetesPodData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData 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.kubernetes.v1.KubernetesPodData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData 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.kubernetes.v1.KubernetesPodData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData 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.kubernetes.v1.KubernetesPodData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData 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.kubernetes.v1.KubernetesPodData 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.kubernetes.v1.KubernetesPodData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.kubernetes.v1.KubernetesPodData) ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.class, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.Builder.class); } // Construct using ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.PodsProto.internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData getDefaultInstanceForType() { return ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData build() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData buildPartial() { ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData result = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData 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.kubernetes.v1.KubernetesPodData) { return mergeFrom((ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData other) { if (other == ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus status_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatusOrBuilder> statusBuilder_; /** * <pre> * string status = 7; * </pre> * * <code>.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus status = 7 [json_name = "status"];</code> * @return The status. */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * <pre> * string status = 7; * </pre> * * <code>.chalk.kubernetes.v1.KubernetesPodData.PodStatus status = 7 [json_name = "status"];</code> */ public Builder setStatus(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus status = 7 [json_name = "status"];</code> */ public Builder setStatus( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus status = 7 [json_name = "status"];</code> */ public Builder mergeStatus(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && status_ != null && status_ != ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodStatus status = 7 [json_name = "status"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000040; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * <pre> * string status = 7; * </pre> * * <code>.chalk.kubernetes.v1.KubernetesPodData.PodStatus status = 7 [json_name = "status"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus.getDefaultInstance() : status_; } } /** * <pre> * string status = 7; * </pre> * * <code>.chalk.kubernetes.v1.KubernetesPodData.PodStatus status = 7 [json_name = "status"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec spec_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpecOrBuilder> specBuilder_; /** * <code>.chalk.kubernetes.v1.KubernetesPodData.PodSpec spec = 8 [json_name = "spec"];</code> * @return Whether the spec field is set. */ public boolean hasSpec() { return ((bitField0_ & 0x00000080) != 0); } /** * <code>.chalk.kubernetes.v1.KubernetesPodData.PodSpec spec = 8 [json_name = "spec"];</code> * @return The spec. */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * <code>.chalk.kubernetes.v1.KubernetesPodData.PodSpec spec = 8 [json_name = "spec"];</code> */ public Builder setSpec(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * <code>.chalk.kubernetes.v1.KubernetesPodData.PodSpec spec = 8 [json_name = "spec"];</code> */ public Builder setSpec( ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * <code>.chalk.kubernetes.v1.KubernetesPodData.PodSpec spec = 8 [json_name = "spec"];</code> */ public Builder mergeSpec(ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && spec_ != null && spec_ != ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec.getDefaultInstance()) { getSpecBuilder().mergeFrom(value); } else { spec_ = value; } } else { specBuilder_.mergeFrom(value); } if (spec_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * <code>.chalk.kubernetes.v1.KubernetesPodData.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.kubernetes.v1.KubernetesPodData.PodSpec spec = 8 [json_name = "spec"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000080; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * <code>.chalk.kubernetes.v1.KubernetesPodData.PodSpec spec = 8 [json_name = "spec"];</code> */ public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec.getDefaultInstance() : spec_; } } /** * <code>.chalk.kubernetes.v1.KubernetesPodData.PodSpec spec = 8 [json_name = "spec"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec.Builder, ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.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"];</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"];</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"];</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"];</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"];</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"];</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"];</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"];</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"];</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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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&lt;string, string&gt; 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.kubernetes.v1.KubernetesPodData) } // @@protoc_insertion_point(class_scope:chalk.kubernetes.v1.KubernetesPodData) private static final ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData(); } public static ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<KubernetesPodData> PARSER = new com.google.protobuf.AbstractParser<KubernetesPodData>() { @java.lang.Override public KubernetesPodData 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<KubernetesPodData> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<KubernetesPodData> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/kubernetes
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/kubernetes/v1/KubernetesPodDataOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/kubernetes/v1/pods.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.kubernetes.v1; public interface KubernetesPodDataOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.kubernetes.v1.KubernetesPodData) 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.kubernetes.v1.KubernetesPodData.PodStatus status = 7 [json_name = "status"];</code> * @return Whether the status field is set. */ boolean hasStatus(); /** * <pre> * string status = 7; * </pre> * * <code>.chalk.kubernetes.v1.KubernetesPodData.PodStatus status = 7 [json_name = "status"];</code> * @return The status. */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatus getStatus(); /** * <pre> * string status = 7; * </pre> * * <code>.chalk.kubernetes.v1.KubernetesPodData.PodStatus status = 7 [json_name = "status"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodStatusOrBuilder getStatusOrBuilder(); /** * <code>.chalk.kubernetes.v1.KubernetesPodData.PodSpec spec = 8 [json_name = "spec"];</code> * @return Whether the spec field is set. */ boolean hasSpec(); /** * <code>.chalk.kubernetes.v1.KubernetesPodData.PodSpec spec = 8 [json_name = "spec"];</code> * @return The spec. */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpec getSpec(); /** * <code>.chalk.kubernetes.v1.KubernetesPodData.PodSpec spec = 8 [json_name = "spec"];</code> */ ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.PodSpecOrBuilder getSpecOrBuilder(); /** * <pre> * The time that the instance was created. * pod.CreationTimestamp.Unix() * </pre> * * <code>int64 creation_timestamp = 18 [json_name = "creationTimestamp"];</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"];</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"];</code> * @return The observedTimestamp. */ long getObservedTimestamp(); /** * <pre> * pod.Labels * </pre> * * <code>map&lt;string, string&gt; labels = 21 [json_name = "labels"];</code> */ int getLabelsCount(); /** * <pre> * pod.Labels * </pre> * * <code>map&lt;string, string&gt; 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&lt;string, string&gt; labels = 21 [json_name = "labels"];</code> */ java.util.Map<java.lang.String, java.lang.String> getLabelsMap(); /** * <pre> * pod.Labels * </pre> * * <code>map&lt;string, string&gt; 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&lt;string, string&gt; labels = 21 [json_name = "labels"];</code> */ java.lang.String getLabelsOrThrow( java.lang.String key); /** * <pre> * pod.Annotations * </pre> * * <code>map&lt;string, string&gt; annotations = 22 [json_name = "annotations"];</code> */ int getAnnotationsCount(); /** * <pre> * pod.Annotations * </pre> * * <code>map&lt;string, string&gt; 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&lt;string, string&gt; annotations = 22 [json_name = "annotations"];</code> */ java.util.Map<java.lang.String, java.lang.String> getAnnotationsMap(); /** * <pre> * pod.Annotations * </pre> * * <code>map&lt;string, string&gt; 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&lt;string, string&gt; 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/kubernetes
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/kubernetes/v1/NodesProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/kubernetes/v1/nodes.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.kubernetes.v1; public final class NodesProto { private NodesProto() {} 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_kubernetes_v1_KubernetesNodeData_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesNodeData_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesNodeData_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesNodeData_LabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesNodeData_AnnotationsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesNodeData_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\037chalk/kubernetes/v1/nodes.proto\022\023chalk" + ".kubernetes.v1\"\300\007\n\022KubernetesNodeData\022\022\n" + "\004team\030\001 \001(\tR\004team\022\022\n\004name\030\002 \001(\tR\004name\022\020\n" + "\003uid\030\003 \001(\tR\003uid\022#\n\rinstance_type\030\004 \001(\tR\014" + "instanceType\022\026\n\006region\030\005 \001(\tR\006region\022\022\n\004" + "zone\030\006 \001(\tR\004zone\022-\n\022creation_timestamp\030\010" + " \001(\003R\021creationTimestamp\022-\n\022deletion_time" + "stamp\030\t \001(\003R\021deletionTimestamp\022-\n\022observ" + "ed_timestamp\030\n \001(\003R\021observedTimestamp\022K\n" + "\006labels\030\013 \003(\01323.chalk.kubernetes.v1.Kube" + "rnetesNodeData.LabelsEntryR\006labels\022Z\n\013an" + "notations\030\014 \003(\01328.chalk.kubernetes.v1.Ku" + "bernetesNodeData.AnnotationsEntryR\013annot" + "ations\022\035\n\nmachine_id\030\r \001(\tR\tmachineId\022\037\n" + "\013system_uuid\030\016 \001(\tR\nsystemUuid\022\027\n\007boot_i" + "d\030\017 \001(\tR\006bootId\022$\n\runschedulable\030\020 \001(\010R\r" + "unschedulable\022\034\n\tnamespace\030\021 \001(\tR\tnamesp" + "ace\022\037\n\013instance_id\030\022 \001(\tR\ninstanceId\022\030\n\007" + "cluster\030\023 \001(\tR\007cluster\022\033\n\ttotal_cpu\030\024 \001(" + "\tR\010totalCpu\022!\n\014total_memory\030\025 \001(\tR\013total" + "Memory\022\'\n\017allocatable_cpu\030\026 \001(\tR\016allocat" + "ableCpu\022-\n\022allocatable_memory\030\027 \001(\tR\021all" + "ocatableMemory\0329\n\013LabelsEntry\022\020\n\003key\030\001 \001" + "(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\032>\n\020Ann" + "otationsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value" + "\030\002 \001(\tR\005value:\0028\001B\273\001\n#ai.chalk.protos.ch" + "alk.kubernetes.v1B\nNodesProtoP\001Z\032kuberne" + "tes/v1;kubernetesv1\242\002\003CKX\252\002\023Chalk.Kubern" + "etes.V1\312\002\023Chalk\\Kubernetes\\V1\342\002\037Chalk\\Ku" + "bernetes\\V1\\GPBMetadata\352\002\025Chalk::Kuberne" + "tes::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_chalk_kubernetes_v1_KubernetesNodeData_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_chalk_kubernetes_v1_KubernetesNodeData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesNodeData_descriptor, new java.lang.String[] { "Team", "Name", "Uid", "InstanceType", "Region", "Zone", "CreationTimestamp", "DeletionTimestamp", "ObservedTimestamp", "Labels", "Annotations", "MachineId", "SystemUuid", "BootId", "Unschedulable", "Namespace", "InstanceId", "Cluster", "TotalCpu", "TotalMemory", "AllocatableCpu", "AllocatableMemory", }); internal_static_chalk_kubernetes_v1_KubernetesNodeData_LabelsEntry_descriptor = internal_static_chalk_kubernetes_v1_KubernetesNodeData_descriptor.getNestedTypes().get(0); internal_static_chalk_kubernetes_v1_KubernetesNodeData_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesNodeData_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_kubernetes_v1_KubernetesNodeData_AnnotationsEntry_descriptor = internal_static_chalk_kubernetes_v1_KubernetesNodeData_descriptor.getNestedTypes().get(1); internal_static_chalk_kubernetes_v1_KubernetesNodeData_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesNodeData_AnnotationsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/kubernetes
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/kubernetes/v1/PodsProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/kubernetes/v1/pods.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.kubernetes.v1; public final class PodsProto { private PodsProto() {} 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_kubernetes_v1_KubernetesPodData_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_Volume_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_Volume_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_ClaimSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_ClaimSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_PodResourceClaim_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_PodResourceClaim_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_PodSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_PodSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_PodSpec_NodeSelectorEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_PodSpec_NodeSelectorEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerState_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerState_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateRunning_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateRunning_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateTerminated_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateTerminated_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_EnvVar_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_EnvVar_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_Container_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_Container_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateWaiting_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateWaiting_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStatus_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStatus_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_Quantity_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_Quantity_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_LimitsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_LimitsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_RequestsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_RequestsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_PodCondition_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_PodCondition_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_HostIP_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_HostIP_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_PodStatus_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_PodStatus_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_LabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_kubernetes_v1_KubernetesPodData_AnnotationsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_kubernetes_v1_KubernetesPodData_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\036chalk/kubernetes/v1/pods.proto\022\023chalk." + "kubernetes.v1\"\2025\n\021KubernetesPodData\022\022\n\004t" + "eam\030\001 \001(\tR\004team\022\020\n\003app\030\002 \001(\tR\003app\022\034\n\tcom" + "ponent\030\003 \001(\tR\tcomponent\022\'\n\017datadog_servi" + "ce\030\004 \001(\tR\016datadogService\022\'\n\017datadog_vers" + "ion\030\005 \001(\tR\016datadogVersion\022*\n\021pod_templat" + "e_hash\030\006 \001(\tR\017podTemplateHash\022H\n\006status\030" + "\007 \001(\01320.chalk.kubernetes.v1.KubernetesPo" + "dData.PodStatusR\006status\022B\n\004spec\030\010 \001(\0132.." + "chalk.kubernetes.v1.KubernetesPodData.Po" + "dSpecR\004spec\022-\n\022creation_timestamp\030\022 \001(\003R" + "\021creationTimestamp\022-\n\022deletion_timestamp" + "\030\023 \001(\003R\021deletionTimestamp\022-\n\022observed_ti" + "mestamp\030\024 \001(\003R\021observedTimestamp\022J\n\006labe" + "ls\030\025 \003(\01322.chalk.kubernetes.v1.Kubernete" + "sPodData.LabelsEntryR\006labels\022Y\n\013annotati" + "ons\030\026 \003(\01327.chalk.kubernetes.v1.Kubernet" + "esPodData.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" + "\202\001\n\020PodResourceClaim\022\022\n\004name\030\001 \001(\tR\004name" + "\022O\n\006source\030\002 \001(\01322.chalk.kubernetes.v1.K" + "ubernetesPodData.ClaimSourceH\000R\006source\210\001" + "\001B\t\n\007_source\032\366\r\n\007PodSpec\022G\n\007volumes\030\001 \003(" + "\0132-.chalk.kubernetes.v1.KubernetesPodDat" + "a.VolumeR\007volumes\022Y\n\017init_containers\030\024 \003" + "(\01320.chalk.kubernetes.v1.KubernetesPodDa" + "ta.ContainerR\016initContainers\022P\n\ncontaine" + "rs\030\002 \003(\01320.chalk.kubernetes.v1.Kubernete" + "sPodData.ContainerR\ncontainers\022*\n\016restar" + "t_policy\030\003 \001(\tH\000R\rrestartPolicy\210\001\001\022L\n te" + "rmination_grace_period_seconds\030\004 \001(\003H\001R\035" + "terminationGracePeriodSeconds\210\001\001\022;\n\027acti" + "ve_deadline_seconds\030\005 \001(\003H\002R\025activeDeadl" + "ineSeconds\210\001\001\022\"\n\ndns_policy\030\006 \001(\tH\003R\tdns" + "Policy\210\001\001\022e\n\rnode_selector\030\007 \003(\0132@.chalk" + ".kubernetes.v1.KubernetesPodData.PodSpec" + ".NodeSelectorEntryR\014nodeSelector\0225\n\024serv" + "ice_account_name\030\010 \001(\tH\004R\022serviceAccount" + "Name\210\001\001\022J\n\037automount_service_account_tok" + "en\030\025 \001(\010H\005R\034automountServiceAccountToken" + "\210\001\001\022 \n\tnode_name\030\n \001(\tH\006R\010nodeName\210\001\001\022!\n" + "\014host_network\030\013 \001(\010R\013hostNetwork\022\031\n\010host" + "_pid\030\014 \001(\010R\007hostPid\022\031\n\010host_ipc\030\r \001(\010R\007h" + "ostIpc\0226\n\027share_process_namespace\030\033 \001(\010R" + "\025shareProcessNamespace\022\037\n\010hostname\030\020 \001(\t" + "H\007R\010hostname\210\001\001\022!\n\tsubdomain\030\021 \001(\tH\010R\tsu" + "bdomain\210\001\001\022*\n\016scheduler_name\030\023 \001(\tH\tR\rsc" + "hedulerName\210\001\001\0223\n\023priority_class_name\030\030 " + "\001(\tH\nR\021priorityClassName\210\001\001\022\037\n\010priority\030" + "\031 \001(\005H\013R\010priority\210\001\001\0221\n\022runtime_class_na" + "me\030\035 \001(\tH\014R\020runtimeClassName\210\001\001\0225\n\024enabl" + "e_service_links\030\036 \001(\010H\rR\022enableServiceLi" + "nks\210\001\001\0220\n\021preemption_policy\030\037 \001(\tH\016R\020pre" + "emptionPolicy\210\001\001\022\"\n\nhost_users\030% \001(\010H\017R\t" + "hostUsers\210\001\001\022`\n\017resource_claims\030\' \003(\01327." + "chalk.kubernetes.v1.KubernetesPodData.Po" + "dResourceClaimR\016resourceClaims\032?\n\021NodeSe" + "lectorEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002" + " \001(\tR\005value:\0028\001B\021\n\017_restart_policyB#\n!_t" + "ermination_grace_period_secondsB\032\n\030_acti" + "ve_deadline_secondsB\r\n\013_dns_policyB\027\n\025_s" + "ervice_account_nameB\"\n _automount_servic" + "e_account_tokenB\014\n\n_node_nameB\013\n\t_hostna" + "meB\014\n\n_subdomainB\021\n\017_scheduler_nameB\026\n\024_" + "priority_class_nameB\013\n\t_priorityB\025\n\023_run" + "time_class_nameB\027\n\025_enable_service_links" + "B\024\n\022_preemption_policyB\r\n\013_host_users\032\327\002" + "\n\016ContainerState\022[\n\007waiting\030\001 \001(\0132<.chal" + "k.kubernetes.v1.KubernetesPodData.Contai" + "nerStateWaitingH\000R\007waiting\210\001\001\022[\n\007running" + "\030\002 \001(\0132<.chalk.kubernetes.v1.KubernetesP" + "odData.ContainerStateRunningH\001R\007running\210" + "\001\001\022d\n\nterminated\030\003 \001(\0132?.chalk.kubernete" + "s.v1.KubernetesPodData.ContainerStateTer" + "minatedH\002R\nterminated\210\001\001B\n\n\010_waitingB\n\n\010" + "_runningB\r\n\013_terminated\0326\n\025ContainerStat" + "eRunning\022\035\n\nstarted_at\030\001 \001(\003R\tstartedAt\032" + "\324\002\n\030ContainerStateTerminated\022\033\n\texit_cod" + "e\030\001 \001(\005R\010exitCode\022\033\n\006signal\030\002 \001(\005H\000R\006sig" + "nal\210\001\001\022\033\n\006reason\030\003 \001(\tH\001R\006reason\210\001\001\022\035\n\007m" + "essage\030\004 \001(\tH\002R\007message\210\001\001\022\"\n\nstarted_at" + "\030\005 \001(\003H\003R\tstartedAt\210\001\001\022$\n\013finished_at\030\006 " + "\001(\003H\004R\nfinishedAt\210\001\001\022&\n\014container_id\030\007 \001" + "(\tH\005R\013containerId\210\001\001B\t\n\007_signalB\t\n\007_reas" + "onB\n\n\010_messageB\r\n\013_started_atB\016\n\014_finish" + "ed_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\342\005\n\tC" + "ontainer\022\022\n\004name\030\001 \001(\tR\004name\022\031\n\005image\030\002 " + "\001(\tH\000R\005image\210\001\001\022\030\n\007command\030\003 \003(\tR\007comman" + "d\022\022\n\004args\030\004 \003(\tR\004args\022$\n\013working_dir\030\005 \001" + "(\tH\001R\nworkingDir\210\001\001\022?\n\003env\030\007 \003(\0132-.chalk" + ".kubernetes.v1.KubernetesPodData.EnvVarR" + "\003env\022^\n\tresources\030\010 \001(\0132;.chalk.kubernet" + "es.v1.KubernetesPodData.ResourceRequirem" + "entsH\002R\tresources\210\001\001\022*\n\016restart_policy\030\030" + " \001(\tH\003R\rrestartPolicy\210\001\001\022=\n\030termination_" + "message_path\030\r \001(\tH\004R\026terminationMessage" + "Path\210\001\001\022A\n\032termination_message_policy\030\024 " + "\001(\tH\005R\030terminationMessagePolicy\210\001\001\022/\n\021im" + "age_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_i" + "mageB\016\n\014_working_dirB\014\n\n_resourcesB\021\n\017_r" + "estart_policyB\033\n\031_termination_message_pa" + "thB\035\n\033_termination_message_policyB\024\n\022_im" + "age_pull_policy\032j\n\025ContainerStateWaiting" + "\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_mess" + "age\032\243\003\n\017ContainerStatus\022\022\n\004name\030\001 \001(\tR\004n" + "ame\022P\n\005state\030\002 \001(\01325.chalk.kubernetes.v1" + ".KubernetesPodData.ContainerStateH\000R\005sta" + "te\210\001\001\022Y\n\nlast_state\030\003 \001(\01325.chalk.kubern" + "etes.v1.KubernetesPodData.ContainerState" + "H\001R\tlastState\210\001\001\022\031\n\005ready\030\004 \001(\010H\002R\005ready" + "\210\001\001\022#\n\rrestart_count\030\005 \001(\005R\014restartCount" + "\022\024\n\005image\030\006 \001(\tR\005image\022\031\n\010image_id\030\007 \001(\t" + "R\007imageId\022!\n\014container_id\030\010 \001(\tR\013contain" + "erId\022\030\n\007started\030\t \001(\010R\007startedB\010\n\006_state" + "B\r\n\013_last_stateB\010\n\006_ready\0322\n\010Quantity\022\033\n" + "\006string\030\001 \001(\tH\000R\006string\210\001\001B\t\n\007_string\032\270\003" + "\n\024ResourceRequirements\022_\n\006limits\030\001 \003(\0132G" + ".chalk.kubernetes.v1.KubernetesPodData.R" + "esourceRequirements.LimitsEntryR\006limits\022" + "e\n\010requests\030\002 \003(\0132I.chalk.kubernetes.v1." + "KubernetesPodData.ResourceRequirements.R" + "equestsEntryR\010requests\032j\n\013LimitsEntry\022\020\n" + "\003key\030\001 \001(\tR\003key\022E\n\005value\030\002 \001(\0132/.chalk.k" + "ubernetes.v1.KubernetesPodData.QuantityR" + "\005value:\0028\001\032l\n\rRequestsEntry\022\020\n\003key\030\001 \001(\t" + "R\003key\022E\n\005value\030\002 \001(\0132/.chalk.kubernetes." + "v1.KubernetesPodData.QuantityR\005value:\0028\001" + "\032\347\001\n\014PodCondition\022\022\n\004type\030\001 \001(\tR\004type\022\026\n" + "\006status\030\002 \001(\tR\006status\022&\n\017last_probe_time" + "\030\003 \001(\003R\rlastProbeTime\0220\n\024last_transition" + "_time\030\004 \001(\003R\022lastTransitionTime\022\033\n\006reaso" + "n\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\006Ho" + "stIP\022\023\n\002ip\030\001 \001(\tH\000R\002ip\210\001\001B\005\n\003_ip\032\234\007\n\tPod" + "Status\022\031\n\005phase\030\001 \001(\tH\000R\005phase\210\001\001\022S\n\ncon" + "ditions\030\002 \003(\01323.chalk.kubernetes.v1.Kube" + "rnetesPodData.PodConditionR\nconditions\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\023nominated_node_nam" + "e\030\013 \001(\tH\003R\021nominatedNodeName\210\001\001\022\034\n\007host_" + "ip\030\005 \001(\tH\004R\006hostIp\210\001\001\022H\n\010host_ips\030\020 \003(\0132" + "-.chalk.kubernetes.v1.KubernetesPodData." + "HostIPR\007hostIps\022\032\n\006pod_ip\030\006 \001(\tH\005R\005podIp" + "\210\001\001\022\"\n\nstart_time\030\007 \001(\003H\006R\tstartTime\210\001\001\022" + "n\n\027init_container_statuses\030\n \003(\01326.chalk" + ".kubernetes.v1.KubernetesPodData.Contain" + "erStatusR\025initContainerStatuses\022e\n\022conta" + "iner_statuses\030\010 \003(\01326.chalk.kubernetes.v" + "1.KubernetesPodData.ContainerStatusR\021con" + "tainerStatuses\022 \n\tqos_class\030\t \001(\tH\007R\010qos" + "Class\210\001\001\022x\n\034ephemeral_container_statuses" + "\030\r \003(\01326.chalk.kubernetes.v1.KubernetesP" + "odData.ContainerStatusR\032ephemeralContain" + "erStatuses\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_nom" + "inated_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_resize\032" + "9\n\013LabelsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005valu" + "e\030\002 \001(\tR\005value:\0028\001\032>\n\020AnnotationsEntry\022\020" + "\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\002" + "8\001B\272\001\n#ai.chalk.protos.chalk.kubernetes." + "v1B\tPodsProtoP\001Z\032kubernetes/v1;kubernete" + "sv1\242\002\003CKX\252\002\023Chalk.Kubernetes.V1\312\002\023Chalk\\" + "Kubernetes\\V1\342\002\037Chalk\\Kubernetes\\V1\\GPBM" + "etadata\352\002\025Chalk::Kubernetes::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_chalk_kubernetes_v1_KubernetesPodData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_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_kubernetes_v1_KubernetesPodData_Volume_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(0); internal_static_chalk_kubernetes_v1_KubernetesPodData_Volume_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_Volume_descriptor, new java.lang.String[] { "Name", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_ClaimSource_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(1); internal_static_chalk_kubernetes_v1_KubernetesPodData_ClaimSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_ClaimSource_descriptor, new java.lang.String[] { "ResourceClaimName", "ResourceClaimTemplateName", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_PodResourceClaim_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(2); internal_static_chalk_kubernetes_v1_KubernetesPodData_PodResourceClaim_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_PodResourceClaim_descriptor, new java.lang.String[] { "Name", "Source", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_PodSpec_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(3); internal_static_chalk_kubernetes_v1_KubernetesPodData_PodSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_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_kubernetes_v1_KubernetesPodData_PodSpec_NodeSelectorEntry_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_PodSpec_descriptor.getNestedTypes().get(0); internal_static_chalk_kubernetes_v1_KubernetesPodData_PodSpec_NodeSelectorEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_PodSpec_NodeSelectorEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerState_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(4); internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerState_descriptor, new java.lang.String[] { "Waiting", "Running", "Terminated", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateRunning_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(5); internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateRunning_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateRunning_descriptor, new java.lang.String[] { "StartedAt", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateTerminated_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(6); internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateTerminated_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateTerminated_descriptor, new java.lang.String[] { "ExitCode", "Signal", "Reason", "Message", "StartedAt", "FinishedAt", "ContainerId", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_EnvVar_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(7); internal_static_chalk_kubernetes_v1_KubernetesPodData_EnvVar_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_EnvVar_descriptor, new java.lang.String[] { "Name", "Value", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_Container_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(8); internal_static_chalk_kubernetes_v1_KubernetesPodData_Container_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_Container_descriptor, new java.lang.String[] { "Name", "Image", "Command", "Args", "WorkingDir", "Env", "Resources", "RestartPolicy", "TerminationMessagePath", "TerminationMessagePolicy", "ImagePullPolicy", "Stdin", "StdinOnce", "Tty", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateWaiting_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(9); internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateWaiting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStateWaiting_descriptor, new java.lang.String[] { "Reason", "Message", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStatus_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(10); internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_ContainerStatus_descriptor, new java.lang.String[] { "Name", "State", "LastState", "Ready", "RestartCount", "Image", "ImageId", "ContainerId", "Started", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_Quantity_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(11); internal_static_chalk_kubernetes_v1_KubernetesPodData_Quantity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_Quantity_descriptor, new java.lang.String[] { "String", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(12); internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_descriptor, new java.lang.String[] { "Limits", "Requests", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_LimitsEntry_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_descriptor.getNestedTypes().get(0); internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_LimitsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_LimitsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_RequestsEntry_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_descriptor.getNestedTypes().get(1); internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_RequestsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_ResourceRequirements_RequestsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_PodCondition_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(13); internal_static_chalk_kubernetes_v1_KubernetesPodData_PodCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_PodCondition_descriptor, new java.lang.String[] { "Type", "Status", "LastProbeTime", "LastTransitionTime", "Reason", "Message", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_HostIP_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(14); internal_static_chalk_kubernetes_v1_KubernetesPodData_HostIP_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_HostIP_descriptor, new java.lang.String[] { "Ip", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_PodStatus_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(15); internal_static_chalk_kubernetes_v1_KubernetesPodData_PodStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_PodStatus_descriptor, new java.lang.String[] { "Phase", "Conditions", "Message", "Reason", "NominatedNodeName", "HostIp", "HostIps", "PodIp", "StartTime", "InitContainerStatuses", "ContainerStatuses", "QosClass", "EphemeralContainerStatuses", "Resize", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_LabelsEntry_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(16); internal_static_chalk_kubernetes_v1_KubernetesPodData_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_kubernetes_v1_KubernetesPodData_AnnotationsEntry_descriptor = internal_static_chalk_kubernetes_v1_KubernetesPodData_descriptor.getNestedTypes().get(17); internal_static_chalk_kubernetes_v1_KubernetesPodData_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_kubernetes_v1_KubernetesPodData_AnnotationsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/CodeAction.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; /** * Protobuf type {@code chalk.lsp.v1.CodeAction} */ public final class CodeAction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.lsp.v1.CodeAction) CodeActionOrBuilder { private static final long serialVersionUID = 0L; // Use CodeAction.newBuilder() to construct. private CodeAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private CodeAction() { title_ = ""; diagnostics_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CodeAction(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_CodeAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_CodeAction_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.CodeAction.class, ai.chalk.protos.chalk.lsp.v1.CodeAction.Builder.class); } private int bitField0_; 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 DIAGNOSTICS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.lsp.v1.Diagnostic> diagnostics_; /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.lsp.v1.Diagnostic> getDiagnosticsList() { return diagnostics_; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder> getDiagnosticsOrBuilderList() { return diagnostics_; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ @java.lang.Override public int getDiagnosticsCount() { return diagnostics_.size(); } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Diagnostic getDiagnostics(int index) { return diagnostics_.get(index); } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder getDiagnosticsOrBuilder( int index) { return diagnostics_.get(index); } public static final int EDIT_FIELD_NUMBER = 3; private ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit edit_; /** * <code>.chalk.lsp.v1.WorkspaceEdit edit = 3 [json_name = "edit"];</code> * @return Whether the edit field is set. */ @java.lang.Override public boolean hasEdit() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.lsp.v1.WorkspaceEdit edit = 3 [json_name = "edit"];</code> * @return The edit. */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit getEdit() { return edit_ == null ? ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.getDefaultInstance() : edit_; } /** * <code>.chalk.lsp.v1.WorkspaceEdit edit = 3 [json_name = "edit"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.WorkspaceEditOrBuilder getEditOrBuilder() { return edit_ == null ? ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.getDefaultInstance() : edit_; } 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(title_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); } for (int i = 0; i < diagnostics_.size(); i++) { output.writeMessage(2, diagnostics_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getEdit()); } 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 < diagnostics_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, diagnostics_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getEdit()); } 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.lsp.v1.CodeAction)) { return super.equals(obj); } ai.chalk.protos.chalk.lsp.v1.CodeAction other = (ai.chalk.protos.chalk.lsp.v1.CodeAction) obj; if (!getTitle() .equals(other.getTitle())) return false; if (!getDiagnosticsList() .equals(other.getDiagnosticsList())) return false; if (hasEdit() != other.hasEdit()) return false; if (hasEdit()) { if (!getEdit() .equals(other.getEdit())) 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 (getDiagnosticsCount() > 0) { hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER; hash = (53 * hash) + getDiagnosticsList().hashCode(); } if (hasEdit()) { hash = (37 * hash) + EDIT_FIELD_NUMBER; hash = (53 * hash) + getEdit().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.lsp.v1.CodeAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.CodeAction 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.lsp.v1.CodeAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.CodeAction 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.lsp.v1.CodeAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.CodeAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.lsp.v1.CodeAction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.CodeAction 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.lsp.v1.CodeAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.CodeAction 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.lsp.v1.CodeAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.CodeAction 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.lsp.v1.CodeAction 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.lsp.v1.CodeAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.lsp.v1.CodeAction) ai.chalk.protos.chalk.lsp.v1.CodeActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_CodeAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_CodeAction_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.CodeAction.class, ai.chalk.protos.chalk.lsp.v1.CodeAction.Builder.class); } // Construct using ai.chalk.protos.chalk.lsp.v1.CodeAction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDiagnosticsFieldBuilder(); getEditFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; title_ = ""; if (diagnosticsBuilder_ == null) { diagnostics_ = java.util.Collections.emptyList(); } else { diagnostics_ = null; diagnosticsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); edit_ = null; if (editBuilder_ != null) { editBuilder_.dispose(); editBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_CodeAction_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.CodeAction getDefaultInstanceForType() { return ai.chalk.protos.chalk.lsp.v1.CodeAction.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.CodeAction build() { ai.chalk.protos.chalk.lsp.v1.CodeAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.CodeAction buildPartial() { ai.chalk.protos.chalk.lsp.v1.CodeAction result = new ai.chalk.protos.chalk.lsp.v1.CodeAction(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.lsp.v1.CodeAction result) { if (diagnosticsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { diagnostics_ = java.util.Collections.unmodifiableList(diagnostics_); bitField0_ = (bitField0_ & ~0x00000002); } result.diagnostics_ = diagnostics_; } else { result.diagnostics_ = diagnosticsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.lsp.v1.CodeAction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.title_ = title_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.edit_ = editBuilder_ == null ? edit_ : editBuilder_.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.lsp.v1.CodeAction) { return mergeFrom((ai.chalk.protos.chalk.lsp.v1.CodeAction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.lsp.v1.CodeAction other) { if (other == ai.chalk.protos.chalk.lsp.v1.CodeAction.getDefaultInstance()) return this; if (!other.getTitle().isEmpty()) { title_ = other.title_; bitField0_ |= 0x00000001; onChanged(); } if (diagnosticsBuilder_ == null) { if (!other.diagnostics_.isEmpty()) { if (diagnostics_.isEmpty()) { diagnostics_ = other.diagnostics_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDiagnosticsIsMutable(); diagnostics_.addAll(other.diagnostics_); } onChanged(); } } else { if (!other.diagnostics_.isEmpty()) { if (diagnosticsBuilder_.isEmpty()) { diagnosticsBuilder_.dispose(); diagnosticsBuilder_ = null; diagnostics_ = other.diagnostics_; bitField0_ = (bitField0_ & ~0x00000002); diagnosticsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDiagnosticsFieldBuilder() : null; } else { diagnosticsBuilder_.addAllMessages(other.diagnostics_); } } } if (other.hasEdit()) { mergeEdit(other.getEdit()); } 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.lsp.v1.Diagnostic m = input.readMessage( ai.chalk.protos.chalk.lsp.v1.Diagnostic.parser(), extensionRegistry); if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.add(m); } else { diagnosticsBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage( getEditFieldBuilder().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 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.lsp.v1.Diagnostic> diagnostics_ = java.util.Collections.emptyList(); private void ensureDiagnosticsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { diagnostics_ = new java.util.ArrayList<ai.chalk.protos.chalk.lsp.v1.Diagnostic>(diagnostics_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Diagnostic, ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder, ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder> diagnosticsBuilder_; /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public java.util.List<ai.chalk.protos.chalk.lsp.v1.Diagnostic> getDiagnosticsList() { if (diagnosticsBuilder_ == null) { return java.util.Collections.unmodifiableList(diagnostics_); } else { return diagnosticsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public int getDiagnosticsCount() { if (diagnosticsBuilder_ == null) { return diagnostics_.size(); } else { return diagnosticsBuilder_.getCount(); } } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public ai.chalk.protos.chalk.lsp.v1.Diagnostic getDiagnostics(int index) { if (diagnosticsBuilder_ == null) { return diagnostics_.get(index); } else { return diagnosticsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder setDiagnostics( int index, ai.chalk.protos.chalk.lsp.v1.Diagnostic value) { if (diagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDiagnosticsIsMutable(); diagnostics_.set(index, value); onChanged(); } else { diagnosticsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder setDiagnostics( int index, ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder builderForValue) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.set(index, builderForValue.build()); onChanged(); } else { diagnosticsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder addDiagnostics(ai.chalk.protos.chalk.lsp.v1.Diagnostic value) { if (diagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDiagnosticsIsMutable(); diagnostics_.add(value); onChanged(); } else { diagnosticsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder addDiagnostics( int index, ai.chalk.protos.chalk.lsp.v1.Diagnostic value) { if (diagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDiagnosticsIsMutable(); diagnostics_.add(index, value); onChanged(); } else { diagnosticsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder addDiagnostics( ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder builderForValue) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.add(builderForValue.build()); onChanged(); } else { diagnosticsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder addDiagnostics( int index, ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder builderForValue) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.add(index, builderForValue.build()); onChanged(); } else { diagnosticsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder addAllDiagnostics( java.lang.Iterable<? extends ai.chalk.protos.chalk.lsp.v1.Diagnostic> values) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, diagnostics_); onChanged(); } else { diagnosticsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder clearDiagnostics() { if (diagnosticsBuilder_ == null) { diagnostics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { diagnosticsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder removeDiagnostics(int index) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.remove(index); onChanged(); } else { diagnosticsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder getDiagnosticsBuilder( int index) { return getDiagnosticsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder getDiagnosticsOrBuilder( int index) { if (diagnosticsBuilder_ == null) { return diagnostics_.get(index); } else { return diagnosticsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder> getDiagnosticsOrBuilderList() { if (diagnosticsBuilder_ != null) { return diagnosticsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(diagnostics_); } } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder addDiagnosticsBuilder() { return getDiagnosticsFieldBuilder().addBuilder( ai.chalk.protos.chalk.lsp.v1.Diagnostic.getDefaultInstance()); } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder addDiagnosticsBuilder( int index) { return getDiagnosticsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.lsp.v1.Diagnostic.getDefaultInstance()); } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public java.util.List<ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder> getDiagnosticsBuilderList() { return getDiagnosticsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Diagnostic, ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder, ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder> getDiagnosticsFieldBuilder() { if (diagnosticsBuilder_ == null) { diagnosticsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Diagnostic, ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder, ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder>( diagnostics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); diagnostics_ = null; } return diagnosticsBuilder_; } private ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit edit_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit, ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.Builder, ai.chalk.protos.chalk.lsp.v1.WorkspaceEditOrBuilder> editBuilder_; /** * <code>.chalk.lsp.v1.WorkspaceEdit edit = 3 [json_name = "edit"];</code> * @return Whether the edit field is set. */ public boolean hasEdit() { return ((bitField0_ & 0x00000004) != 0); } /** * <code>.chalk.lsp.v1.WorkspaceEdit edit = 3 [json_name = "edit"];</code> * @return The edit. */ public ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit getEdit() { if (editBuilder_ == null) { return edit_ == null ? ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.getDefaultInstance() : edit_; } else { return editBuilder_.getMessage(); } } /** * <code>.chalk.lsp.v1.WorkspaceEdit edit = 3 [json_name = "edit"];</code> */ public Builder setEdit(ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit value) { if (editBuilder_ == null) { if (value == null) { throw new NullPointerException(); } edit_ = value; } else { editBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>.chalk.lsp.v1.WorkspaceEdit edit = 3 [json_name = "edit"];</code> */ public Builder setEdit( ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.Builder builderForValue) { if (editBuilder_ == null) { edit_ = builderForValue.build(); } else { editBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>.chalk.lsp.v1.WorkspaceEdit edit = 3 [json_name = "edit"];</code> */ public Builder mergeEdit(ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit value) { if (editBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && edit_ != null && edit_ != ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.getDefaultInstance()) { getEditBuilder().mergeFrom(value); } else { edit_ = value; } } else { editBuilder_.mergeFrom(value); } if (edit_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * <code>.chalk.lsp.v1.WorkspaceEdit edit = 3 [json_name = "edit"];</code> */ public Builder clearEdit() { bitField0_ = (bitField0_ & ~0x00000004); edit_ = null; if (editBuilder_ != null) { editBuilder_.dispose(); editBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.lsp.v1.WorkspaceEdit edit = 3 [json_name = "edit"];</code> */ public ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.Builder getEditBuilder() { bitField0_ |= 0x00000004; onChanged(); return getEditFieldBuilder().getBuilder(); } /** * <code>.chalk.lsp.v1.WorkspaceEdit edit = 3 [json_name = "edit"];</code> */ public ai.chalk.protos.chalk.lsp.v1.WorkspaceEditOrBuilder getEditOrBuilder() { if (editBuilder_ != null) { return editBuilder_.getMessageOrBuilder(); } else { return edit_ == null ? ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.getDefaultInstance() : edit_; } } /** * <code>.chalk.lsp.v1.WorkspaceEdit edit = 3 [json_name = "edit"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit, ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.Builder, ai.chalk.protos.chalk.lsp.v1.WorkspaceEditOrBuilder> getEditFieldBuilder() { if (editBuilder_ == null) { editBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit, ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.Builder, ai.chalk.protos.chalk.lsp.v1.WorkspaceEditOrBuilder>( getEdit(), getParentForChildren(), isClean()); edit_ = null; } return editBuilder_; } @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.lsp.v1.CodeAction) } // @@protoc_insertion_point(class_scope:chalk.lsp.v1.CodeAction) private static final ai.chalk.protos.chalk.lsp.v1.CodeAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.lsp.v1.CodeAction(); } public static ai.chalk.protos.chalk.lsp.v1.CodeAction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<CodeAction> PARSER = new com.google.protobuf.AbstractParser<CodeAction>() { @java.lang.Override public CodeAction 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<CodeAction> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<CodeAction> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.CodeAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/CodeActionOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; public interface CodeActionOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.lsp.v1.CodeAction) 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.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ java.util.List<ai.chalk.protos.chalk.lsp.v1.Diagnostic> getDiagnosticsList(); /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ ai.chalk.protos.chalk.lsp.v1.Diagnostic getDiagnostics(int index); /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ int getDiagnosticsCount(); /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder> getDiagnosticsOrBuilderList(); /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder getDiagnosticsOrBuilder( int index); /** * <code>.chalk.lsp.v1.WorkspaceEdit edit = 3 [json_name = "edit"];</code> * @return Whether the edit field is set. */ boolean hasEdit(); /** * <code>.chalk.lsp.v1.WorkspaceEdit edit = 3 [json_name = "edit"];</code> * @return The edit. */ ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit getEdit(); /** * <code>.chalk.lsp.v1.WorkspaceEdit edit = 3 [json_name = "edit"];</code> */ ai.chalk.protos.chalk.lsp.v1.WorkspaceEditOrBuilder getEditOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/CodeDescription.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; /** * Protobuf type {@code chalk.lsp.v1.CodeDescription} */ public final class CodeDescription extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.lsp.v1.CodeDescription) CodeDescriptionOrBuilder { private static final long serialVersionUID = 0L; // Use CodeDescription.newBuilder() to construct. private CodeDescription(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private CodeDescription() { href_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CodeDescription(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_CodeDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_CodeDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.CodeDescription.class, ai.chalk.protos.chalk.lsp.v1.CodeDescription.Builder.class); } public static final int HREF_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object href_ = ""; /** * <code>string href = 1 [json_name = "href"];</code> * @return The href. */ @java.lang.Override public java.lang.String getHref() { java.lang.Object ref = href_; 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(); href_ = s; return s; } } /** * <code>string href = 1 [json_name = "href"];</code> * @return The bytes for href. */ @java.lang.Override public com.google.protobuf.ByteString getHrefBytes() { java.lang.Object ref = href_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); href_ = 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(href_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, href_); } 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(href_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, href_); } 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.lsp.v1.CodeDescription)) { return super.equals(obj); } ai.chalk.protos.chalk.lsp.v1.CodeDescription other = (ai.chalk.protos.chalk.lsp.v1.CodeDescription) obj; if (!getHref() .equals(other.getHref())) 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) + HREF_FIELD_NUMBER; hash = (53 * hash) + getHref().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.lsp.v1.CodeDescription parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.CodeDescription 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.lsp.v1.CodeDescription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.CodeDescription 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.lsp.v1.CodeDescription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.CodeDescription parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.lsp.v1.CodeDescription parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.CodeDescription 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.lsp.v1.CodeDescription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.CodeDescription 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.lsp.v1.CodeDescription parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.CodeDescription 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.lsp.v1.CodeDescription 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.lsp.v1.CodeDescription} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.lsp.v1.CodeDescription) ai.chalk.protos.chalk.lsp.v1.CodeDescriptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_CodeDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_CodeDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.CodeDescription.class, ai.chalk.protos.chalk.lsp.v1.CodeDescription.Builder.class); } // Construct using ai.chalk.protos.chalk.lsp.v1.CodeDescription.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; href_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_CodeDescription_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.CodeDescription getDefaultInstanceForType() { return ai.chalk.protos.chalk.lsp.v1.CodeDescription.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.CodeDescription build() { ai.chalk.protos.chalk.lsp.v1.CodeDescription result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.CodeDescription buildPartial() { ai.chalk.protos.chalk.lsp.v1.CodeDescription result = new ai.chalk.protos.chalk.lsp.v1.CodeDescription(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.lsp.v1.CodeDescription result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.href_ = href_; } } @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.lsp.v1.CodeDescription) { return mergeFrom((ai.chalk.protos.chalk.lsp.v1.CodeDescription)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.lsp.v1.CodeDescription other) { if (other == ai.chalk.protos.chalk.lsp.v1.CodeDescription.getDefaultInstance()) return this; if (!other.getHref().isEmpty()) { href_ = other.href_; 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: { href_ = 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 href_ = ""; /** * <code>string href = 1 [json_name = "href"];</code> * @return The href. */ public java.lang.String getHref() { java.lang.Object ref = href_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); href_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string href = 1 [json_name = "href"];</code> * @return The bytes for href. */ public com.google.protobuf.ByteString getHrefBytes() { java.lang.Object ref = href_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); href_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string href = 1 [json_name = "href"];</code> * @param value The href to set. * @return This builder for chaining. */ public Builder setHref( java.lang.String value) { if (value == null) { throw new NullPointerException(); } href_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string href = 1 [json_name = "href"];</code> * @return This builder for chaining. */ public Builder clearHref() { href_ = getDefaultInstance().getHref(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string href = 1 [json_name = "href"];</code> * @param value The bytes for href to set. * @return This builder for chaining. */ public Builder setHrefBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); href_ = 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.lsp.v1.CodeDescription) } // @@protoc_insertion_point(class_scope:chalk.lsp.v1.CodeDescription) private static final ai.chalk.protos.chalk.lsp.v1.CodeDescription DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.lsp.v1.CodeDescription(); } public static ai.chalk.protos.chalk.lsp.v1.CodeDescription getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<CodeDescription> PARSER = new com.google.protobuf.AbstractParser<CodeDescription>() { @java.lang.Override public CodeDescription 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<CodeDescription> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<CodeDescription> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.CodeDescription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/CodeDescriptionOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; public interface CodeDescriptionOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.lsp.v1.CodeDescription) com.google.protobuf.MessageOrBuilder { /** * <code>string href = 1 [json_name = "href"];</code> * @return The href. */ java.lang.String getHref(); /** * <code>string href = 1 [json_name = "href"];</code> * @return The bytes for href. */ com.google.protobuf.ByteString getHrefBytes(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/Diagnostic.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; /** * Protobuf type {@code chalk.lsp.v1.Diagnostic} */ public final class Diagnostic extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.lsp.v1.Diagnostic) DiagnosticOrBuilder { private static final long serialVersionUID = 0L; // Use Diagnostic.newBuilder() to construct. private Diagnostic(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Diagnostic() { message_ = ""; severity_ = 0; code_ = ""; relatedInformation_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Diagnostic(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Diagnostic_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Diagnostic_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.Diagnostic.class, ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder.class); } private int bitField0_; public static final int RANGE_FIELD_NUMBER = 1; private ai.chalk.protos.chalk.lsp.v1.Range range_; /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return Whether the range field is set. */ @java.lang.Override public boolean hasRange() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return The range. */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Range getRange() { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder getRangeOrBuilder() { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } public static final int MESSAGE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** * <code>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; } } /** * <code>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; } } public static final int SEVERITY_FIELD_NUMBER = 3; private int severity_ = 0; /** * <code>.chalk.lsp.v1.DiagnosticSeverity severity = 3 [json_name = "severity"];</code> * @return The enum numeric value on the wire for severity. */ @java.lang.Override public int getSeverityValue() { return severity_; } /** * <code>.chalk.lsp.v1.DiagnosticSeverity severity = 3 [json_name = "severity"];</code> * @return The severity. */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.DiagnosticSeverity getSeverity() { ai.chalk.protos.chalk.lsp.v1.DiagnosticSeverity result = ai.chalk.protos.chalk.lsp.v1.DiagnosticSeverity.forNumber(severity_); return result == null ? ai.chalk.protos.chalk.lsp.v1.DiagnosticSeverity.UNRECOGNIZED : result; } public static final int CODE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** * <code>optional string code = 4 [json_name = "code"];</code> * @return Whether the code field is set. */ @java.lang.Override public boolean hasCode() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>optional string code = 4 [json_name = "code"];</code> * @return The code. */ @java.lang.Override public java.lang.String getCode() { java.lang.Object ref = code_; 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(); code_ = s; return s; } } /** * <code>optional string code = 4 [json_name = "code"];</code> * @return The bytes for code. */ @java.lang.Override public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); code_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CODE_DESCRIPTION_FIELD_NUMBER = 5; private ai.chalk.protos.chalk.lsp.v1.CodeDescription codeDescription_; /** * <code>.chalk.lsp.v1.CodeDescription code_description = 5 [json_name = "codeDescription"];</code> * @return Whether the codeDescription field is set. */ @java.lang.Override public boolean hasCodeDescription() { return ((bitField0_ & 0x00000004) != 0); } /** * <code>.chalk.lsp.v1.CodeDescription code_description = 5 [json_name = "codeDescription"];</code> * @return The codeDescription. */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.CodeDescription getCodeDescription() { return codeDescription_ == null ? ai.chalk.protos.chalk.lsp.v1.CodeDescription.getDefaultInstance() : codeDescription_; } /** * <code>.chalk.lsp.v1.CodeDescription code_description = 5 [json_name = "codeDescription"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.CodeDescriptionOrBuilder getCodeDescriptionOrBuilder() { return codeDescription_ == null ? ai.chalk.protos.chalk.lsp.v1.CodeDescription.getDefaultInstance() : codeDescription_; } public static final int RELATED_INFORMATION_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation> relatedInformation_; /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation> getRelatedInformationList() { return relatedInformation_; } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformationOrBuilder> getRelatedInformationOrBuilderList() { return relatedInformation_; } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ @java.lang.Override public int getRelatedInformationCount() { return relatedInformation_.size(); } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation getRelatedInformation(int index) { return relatedInformation_.get(index); } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformationOrBuilder getRelatedInformationOrBuilder( int index) { return relatedInformation_.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 { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRange()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } if (severity_ != ai.chalk.protos.chalk.lsp.v1.DiagnosticSeverity.DIAGNOSTIC_SEVERITY_UNSPECIFIED.getNumber()) { output.writeEnum(3, severity_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, code_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getCodeDescription()); } for (int i = 0; i < relatedInformation_.size(); i++) { output.writeMessage(6, relatedInformation_.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.CodedOutputStream .computeMessageSize(1, getRange()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } if (severity_ != ai.chalk.protos.chalk.lsp.v1.DiagnosticSeverity.DIAGNOSTIC_SEVERITY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, severity_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, code_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getCodeDescription()); } for (int i = 0; i < relatedInformation_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, relatedInformation_.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.lsp.v1.Diagnostic)) { return super.equals(obj); } ai.chalk.protos.chalk.lsp.v1.Diagnostic other = (ai.chalk.protos.chalk.lsp.v1.Diagnostic) obj; if (hasRange() != other.hasRange()) return false; if (hasRange()) { if (!getRange() .equals(other.getRange())) return false; } if (!getMessage() .equals(other.getMessage())) return false; if (severity_ != other.severity_) return false; if (hasCode() != other.hasCode()) return false; if (hasCode()) { if (!getCode() .equals(other.getCode())) return false; } if (hasCodeDescription() != other.hasCodeDescription()) return false; if (hasCodeDescription()) { if (!getCodeDescription() .equals(other.getCodeDescription())) return false; } if (!getRelatedInformationList() .equals(other.getRelatedInformationList())) 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 (hasRange()) { hash = (37 * hash) + RANGE_FIELD_NUMBER; hash = (53 * hash) + getRange().hashCode(); } hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (37 * hash) + SEVERITY_FIELD_NUMBER; hash = (53 * hash) + severity_; if (hasCode()) { hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode().hashCode(); } if (hasCodeDescription()) { hash = (37 * hash) + CODE_DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getCodeDescription().hashCode(); } if (getRelatedInformationCount() > 0) { hash = (37 * hash) + RELATED_INFORMATION_FIELD_NUMBER; hash = (53 * hash) + getRelatedInformationList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.lsp.v1.Diagnostic parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.Diagnostic 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.lsp.v1.Diagnostic parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.Diagnostic 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.lsp.v1.Diagnostic parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.Diagnostic parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.lsp.v1.Diagnostic parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.Diagnostic 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.lsp.v1.Diagnostic parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.Diagnostic 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.lsp.v1.Diagnostic parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.Diagnostic 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.lsp.v1.Diagnostic 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.lsp.v1.Diagnostic} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.lsp.v1.Diagnostic) ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Diagnostic_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Diagnostic_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.Diagnostic.class, ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder.class); } // Construct using ai.chalk.protos.chalk.lsp.v1.Diagnostic.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRangeFieldBuilder(); getCodeDescriptionFieldBuilder(); getRelatedInformationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; range_ = null; if (rangeBuilder_ != null) { rangeBuilder_.dispose(); rangeBuilder_ = null; } message_ = ""; severity_ = 0; code_ = ""; codeDescription_ = null; if (codeDescriptionBuilder_ != null) { codeDescriptionBuilder_.dispose(); codeDescriptionBuilder_ = null; } if (relatedInformationBuilder_ == null) { relatedInformation_ = java.util.Collections.emptyList(); } else { relatedInformation_ = null; relatedInformationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Diagnostic_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Diagnostic getDefaultInstanceForType() { return ai.chalk.protos.chalk.lsp.v1.Diagnostic.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Diagnostic build() { ai.chalk.protos.chalk.lsp.v1.Diagnostic result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Diagnostic buildPartial() { ai.chalk.protos.chalk.lsp.v1.Diagnostic result = new ai.chalk.protos.chalk.lsp.v1.Diagnostic(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.lsp.v1.Diagnostic result) { if (relatedInformationBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { relatedInformation_ = java.util.Collections.unmodifiableList(relatedInformation_); bitField0_ = (bitField0_ & ~0x00000020); } result.relatedInformation_ = relatedInformation_; } else { result.relatedInformation_ = relatedInformationBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.lsp.v1.Diagnostic result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.range_ = rangeBuilder_ == null ? range_ : rangeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.message_ = message_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.severity_ = severity_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.code_ = code_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.codeDescription_ = codeDescriptionBuilder_ == null ? codeDescription_ : codeDescriptionBuilder_.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.lsp.v1.Diagnostic) { return mergeFrom((ai.chalk.protos.chalk.lsp.v1.Diagnostic)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.lsp.v1.Diagnostic other) { if (other == ai.chalk.protos.chalk.lsp.v1.Diagnostic.getDefaultInstance()) return this; if (other.hasRange()) { mergeRange(other.getRange()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; bitField0_ |= 0x00000002; onChanged(); } if (other.severity_ != 0) { setSeverityValue(other.getSeverityValue()); } if (other.hasCode()) { code_ = other.code_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasCodeDescription()) { mergeCodeDescription(other.getCodeDescription()); } if (relatedInformationBuilder_ == null) { if (!other.relatedInformation_.isEmpty()) { if (relatedInformation_.isEmpty()) { relatedInformation_ = other.relatedInformation_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureRelatedInformationIsMutable(); relatedInformation_.addAll(other.relatedInformation_); } onChanged(); } } else { if (!other.relatedInformation_.isEmpty()) { if (relatedInformationBuilder_.isEmpty()) { relatedInformationBuilder_.dispose(); relatedInformationBuilder_ = null; relatedInformation_ = other.relatedInformation_; bitField0_ = (bitField0_ & ~0x00000020); relatedInformationBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRelatedInformationFieldBuilder() : null; } else { relatedInformationBuilder_.addAllMessages(other.relatedInformation_); } } } 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( getRangeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { message_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { severity_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { code_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getCodeDescriptionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation m = input.readMessage( ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.parser(), extensionRegistry); if (relatedInformationBuilder_ == null) { ensureRelatedInformationIsMutable(); relatedInformation_.add(m); } else { relatedInformationBuilder_.addMessage(m); } break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private ai.chalk.protos.chalk.lsp.v1.Range range_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Range, ai.chalk.protos.chalk.lsp.v1.Range.Builder, ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder> rangeBuilder_; /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return Whether the range field is set. */ public boolean hasRange() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return The range. */ public ai.chalk.protos.chalk.lsp.v1.Range getRange() { if (rangeBuilder_ == null) { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } else { return rangeBuilder_.getMessage(); } } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public Builder setRange(ai.chalk.protos.chalk.lsp.v1.Range value) { if (rangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } range_ = value; } else { rangeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public Builder setRange( ai.chalk.protos.chalk.lsp.v1.Range.Builder builderForValue) { if (rangeBuilder_ == null) { range_ = builderForValue.build(); } else { rangeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public Builder mergeRange(ai.chalk.protos.chalk.lsp.v1.Range value) { if (rangeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && range_ != null && range_ != ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance()) { getRangeBuilder().mergeFrom(value); } else { range_ = value; } } else { rangeBuilder_.mergeFrom(value); } if (range_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public Builder clearRange() { bitField0_ = (bitField0_ & ~0x00000001); range_ = null; if (rangeBuilder_ != null) { rangeBuilder_.dispose(); rangeBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public ai.chalk.protos.chalk.lsp.v1.Range.Builder getRangeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRangeFieldBuilder().getBuilder(); } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder getRangeOrBuilder() { if (rangeBuilder_ != null) { return rangeBuilder_.getMessageOrBuilder(); } else { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Range, ai.chalk.protos.chalk.lsp.v1.Range.Builder, ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder> getRangeFieldBuilder() { if (rangeBuilder_ == null) { rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Range, ai.chalk.protos.chalk.lsp.v1.Range.Builder, ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder>( getRange(), getParentForChildren(), isClean()); range_ = null; } return rangeBuilder_; } private java.lang.Object message_ = ""; /** * <code>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; } } /** * <code>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; } } /** * <code>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; } /** * <code>string message = 2 [json_name = "message"];</code> * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>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; } private int severity_ = 0; /** * <code>.chalk.lsp.v1.DiagnosticSeverity severity = 3 [json_name = "severity"];</code> * @return The enum numeric value on the wire for severity. */ @java.lang.Override public int getSeverityValue() { return severity_; } /** * <code>.chalk.lsp.v1.DiagnosticSeverity severity = 3 [json_name = "severity"];</code> * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { severity_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>.chalk.lsp.v1.DiagnosticSeverity severity = 3 [json_name = "severity"];</code> * @return The severity. */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.DiagnosticSeverity getSeverity() { ai.chalk.protos.chalk.lsp.v1.DiagnosticSeverity result = ai.chalk.protos.chalk.lsp.v1.DiagnosticSeverity.forNumber(severity_); return result == null ? ai.chalk.protos.chalk.lsp.v1.DiagnosticSeverity.UNRECOGNIZED : result; } /** * <code>.chalk.lsp.v1.DiagnosticSeverity severity = 3 [json_name = "severity"];</code> * @param value The severity to set. * @return This builder for chaining. */ public Builder setSeverity(ai.chalk.protos.chalk.lsp.v1.DiagnosticSeverity value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; severity_ = value.getNumber(); onChanged(); return this; } /** * <code>.chalk.lsp.v1.DiagnosticSeverity severity = 3 [json_name = "severity"];</code> * @return This builder for chaining. */ public Builder clearSeverity() { bitField0_ = (bitField0_ & ~0x00000004); severity_ = 0; onChanged(); return this; } private java.lang.Object code_ = ""; /** * <code>optional string code = 4 [json_name = "code"];</code> * @return Whether the code field is set. */ public boolean hasCode() { return ((bitField0_ & 0x00000008) != 0); } /** * <code>optional string code = 4 [json_name = "code"];</code> * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string code = 4 [json_name = "code"];</code> * @return The bytes for code. */ public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); code_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string code = 4 [json_name = "code"];</code> * @param value The code to set. * @return This builder for chaining. */ public Builder setCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>optional string code = 4 [json_name = "code"];</code> * @return This builder for chaining. */ public Builder clearCode() { code_ = getDefaultInstance().getCode(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * <code>optional string code = 4 [json_name = "code"];</code> * @param value The bytes for code to set. * @return This builder for chaining. */ public Builder setCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private ai.chalk.protos.chalk.lsp.v1.CodeDescription codeDescription_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.CodeDescription, ai.chalk.protos.chalk.lsp.v1.CodeDescription.Builder, ai.chalk.protos.chalk.lsp.v1.CodeDescriptionOrBuilder> codeDescriptionBuilder_; /** * <code>.chalk.lsp.v1.CodeDescription code_description = 5 [json_name = "codeDescription"];</code> * @return Whether the codeDescription field is set. */ public boolean hasCodeDescription() { return ((bitField0_ & 0x00000010) != 0); } /** * <code>.chalk.lsp.v1.CodeDescription code_description = 5 [json_name = "codeDescription"];</code> * @return The codeDescription. */ public ai.chalk.protos.chalk.lsp.v1.CodeDescription getCodeDescription() { if (codeDescriptionBuilder_ == null) { return codeDescription_ == null ? ai.chalk.protos.chalk.lsp.v1.CodeDescription.getDefaultInstance() : codeDescription_; } else { return codeDescriptionBuilder_.getMessage(); } } /** * <code>.chalk.lsp.v1.CodeDescription code_description = 5 [json_name = "codeDescription"];</code> */ public Builder setCodeDescription(ai.chalk.protos.chalk.lsp.v1.CodeDescription value) { if (codeDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } codeDescription_ = value; } else { codeDescriptionBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>.chalk.lsp.v1.CodeDescription code_description = 5 [json_name = "codeDescription"];</code> */ public Builder setCodeDescription( ai.chalk.protos.chalk.lsp.v1.CodeDescription.Builder builderForValue) { if (codeDescriptionBuilder_ == null) { codeDescription_ = builderForValue.build(); } else { codeDescriptionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>.chalk.lsp.v1.CodeDescription code_description = 5 [json_name = "codeDescription"];</code> */ public Builder mergeCodeDescription(ai.chalk.protos.chalk.lsp.v1.CodeDescription value) { if (codeDescriptionBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && codeDescription_ != null && codeDescription_ != ai.chalk.protos.chalk.lsp.v1.CodeDescription.getDefaultInstance()) { getCodeDescriptionBuilder().mergeFrom(value); } else { codeDescription_ = value; } } else { codeDescriptionBuilder_.mergeFrom(value); } if (codeDescription_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * <code>.chalk.lsp.v1.CodeDescription code_description = 5 [json_name = "codeDescription"];</code> */ public Builder clearCodeDescription() { bitField0_ = (bitField0_ & ~0x00000010); codeDescription_ = null; if (codeDescriptionBuilder_ != null) { codeDescriptionBuilder_.dispose(); codeDescriptionBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.lsp.v1.CodeDescription code_description = 5 [json_name = "codeDescription"];</code> */ public ai.chalk.protos.chalk.lsp.v1.CodeDescription.Builder getCodeDescriptionBuilder() { bitField0_ |= 0x00000010; onChanged(); return getCodeDescriptionFieldBuilder().getBuilder(); } /** * <code>.chalk.lsp.v1.CodeDescription code_description = 5 [json_name = "codeDescription"];</code> */ public ai.chalk.protos.chalk.lsp.v1.CodeDescriptionOrBuilder getCodeDescriptionOrBuilder() { if (codeDescriptionBuilder_ != null) { return codeDescriptionBuilder_.getMessageOrBuilder(); } else { return codeDescription_ == null ? ai.chalk.protos.chalk.lsp.v1.CodeDescription.getDefaultInstance() : codeDescription_; } } /** * <code>.chalk.lsp.v1.CodeDescription code_description = 5 [json_name = "codeDescription"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.CodeDescription, ai.chalk.protos.chalk.lsp.v1.CodeDescription.Builder, ai.chalk.protos.chalk.lsp.v1.CodeDescriptionOrBuilder> getCodeDescriptionFieldBuilder() { if (codeDescriptionBuilder_ == null) { codeDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.CodeDescription, ai.chalk.protos.chalk.lsp.v1.CodeDescription.Builder, ai.chalk.protos.chalk.lsp.v1.CodeDescriptionOrBuilder>( getCodeDescription(), getParentForChildren(), isClean()); codeDescription_ = null; } return codeDescriptionBuilder_; } private java.util.List<ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation> relatedInformation_ = java.util.Collections.emptyList(); private void ensureRelatedInformationIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { relatedInformation_ = new java.util.ArrayList<ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation>(relatedInformation_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation, ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.Builder, ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformationOrBuilder> relatedInformationBuilder_; /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public java.util.List<ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation> getRelatedInformationList() { if (relatedInformationBuilder_ == null) { return java.util.Collections.unmodifiableList(relatedInformation_); } else { return relatedInformationBuilder_.getMessageList(); } } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public int getRelatedInformationCount() { if (relatedInformationBuilder_ == null) { return relatedInformation_.size(); } else { return relatedInformationBuilder_.getCount(); } } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation getRelatedInformation(int index) { if (relatedInformationBuilder_ == null) { return relatedInformation_.get(index); } else { return relatedInformationBuilder_.getMessage(index); } } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public Builder setRelatedInformation( int index, ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation value) { if (relatedInformationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRelatedInformationIsMutable(); relatedInformation_.set(index, value); onChanged(); } else { relatedInformationBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public Builder setRelatedInformation( int index, ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.Builder builderForValue) { if (relatedInformationBuilder_ == null) { ensureRelatedInformationIsMutable(); relatedInformation_.set(index, builderForValue.build()); onChanged(); } else { relatedInformationBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public Builder addRelatedInformation(ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation value) { if (relatedInformationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRelatedInformationIsMutable(); relatedInformation_.add(value); onChanged(); } else { relatedInformationBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public Builder addRelatedInformation( int index, ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation value) { if (relatedInformationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRelatedInformationIsMutable(); relatedInformation_.add(index, value); onChanged(); } else { relatedInformationBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public Builder addRelatedInformation( ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.Builder builderForValue) { if (relatedInformationBuilder_ == null) { ensureRelatedInformationIsMutable(); relatedInformation_.add(builderForValue.build()); onChanged(); } else { relatedInformationBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public Builder addRelatedInformation( int index, ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.Builder builderForValue) { if (relatedInformationBuilder_ == null) { ensureRelatedInformationIsMutable(); relatedInformation_.add(index, builderForValue.build()); onChanged(); } else { relatedInformationBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public Builder addAllRelatedInformation( java.lang.Iterable<? extends ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation> values) { if (relatedInformationBuilder_ == null) { ensureRelatedInformationIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, relatedInformation_); onChanged(); } else { relatedInformationBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public Builder clearRelatedInformation() { if (relatedInformationBuilder_ == null) { relatedInformation_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { relatedInformationBuilder_.clear(); } return this; } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public Builder removeRelatedInformation(int index) { if (relatedInformationBuilder_ == null) { ensureRelatedInformationIsMutable(); relatedInformation_.remove(index); onChanged(); } else { relatedInformationBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.Builder getRelatedInformationBuilder( int index) { return getRelatedInformationFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformationOrBuilder getRelatedInformationOrBuilder( int index) { if (relatedInformationBuilder_ == null) { return relatedInformation_.get(index); } else { return relatedInformationBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformationOrBuilder> getRelatedInformationOrBuilderList() { if (relatedInformationBuilder_ != null) { return relatedInformationBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(relatedInformation_); } } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.Builder addRelatedInformationBuilder() { return getRelatedInformationFieldBuilder().addBuilder( ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.getDefaultInstance()); } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.Builder addRelatedInformationBuilder( int index) { return getRelatedInformationFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.getDefaultInstance()); } /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ public java.util.List<ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.Builder> getRelatedInformationBuilderList() { return getRelatedInformationFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation, ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.Builder, ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformationOrBuilder> getRelatedInformationFieldBuilder() { if (relatedInformationBuilder_ == null) { relatedInformationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation, ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.Builder, ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformationOrBuilder>( relatedInformation_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); relatedInformation_ = null; } return relatedInformationBuilder_; } @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.lsp.v1.Diagnostic) } // @@protoc_insertion_point(class_scope:chalk.lsp.v1.Diagnostic) private static final ai.chalk.protos.chalk.lsp.v1.Diagnostic DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.lsp.v1.Diagnostic(); } public static ai.chalk.protos.chalk.lsp.v1.Diagnostic getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Diagnostic> PARSER = new com.google.protobuf.AbstractParser<Diagnostic>() { @java.lang.Override public Diagnostic 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<Diagnostic> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Diagnostic> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Diagnostic getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/DiagnosticOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; public interface DiagnosticOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.lsp.v1.Diagnostic) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return Whether the range field is set. */ boolean hasRange(); /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return The range. */ ai.chalk.protos.chalk.lsp.v1.Range getRange(); /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder getRangeOrBuilder(); /** * <code>string message = 2 [json_name = "message"];</code> * @return The message. */ java.lang.String getMessage(); /** * <code>string message = 2 [json_name = "message"];</code> * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** * <code>.chalk.lsp.v1.DiagnosticSeverity severity = 3 [json_name = "severity"];</code> * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** * <code>.chalk.lsp.v1.DiagnosticSeverity severity = 3 [json_name = "severity"];</code> * @return The severity. */ ai.chalk.protos.chalk.lsp.v1.DiagnosticSeverity getSeverity(); /** * <code>optional string code = 4 [json_name = "code"];</code> * @return Whether the code field is set. */ boolean hasCode(); /** * <code>optional string code = 4 [json_name = "code"];</code> * @return The code. */ java.lang.String getCode(); /** * <code>optional string code = 4 [json_name = "code"];</code> * @return The bytes for code. */ com.google.protobuf.ByteString getCodeBytes(); /** * <code>.chalk.lsp.v1.CodeDescription code_description = 5 [json_name = "codeDescription"];</code> * @return Whether the codeDescription field is set. */ boolean hasCodeDescription(); /** * <code>.chalk.lsp.v1.CodeDescription code_description = 5 [json_name = "codeDescription"];</code> * @return The codeDescription. */ ai.chalk.protos.chalk.lsp.v1.CodeDescription getCodeDescription(); /** * <code>.chalk.lsp.v1.CodeDescription code_description = 5 [json_name = "codeDescription"];</code> */ ai.chalk.protos.chalk.lsp.v1.CodeDescriptionOrBuilder getCodeDescriptionOrBuilder(); /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ java.util.List<ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation> getRelatedInformationList(); /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation getRelatedInformation(int index); /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ int getRelatedInformationCount(); /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformationOrBuilder> getRelatedInformationOrBuilderList(); /** * <code>repeated .chalk.lsp.v1.DiagnosticRelatedInformation related_information = 6 [json_name = "relatedInformation"];</code> */ ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformationOrBuilder getRelatedInformationOrBuilder( int index); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/DiagnosticRelatedInformation.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; /** * Protobuf type {@code chalk.lsp.v1.DiagnosticRelatedInformation} */ public final class DiagnosticRelatedInformation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.lsp.v1.DiagnosticRelatedInformation) DiagnosticRelatedInformationOrBuilder { private static final long serialVersionUID = 0L; // Use DiagnosticRelatedInformation.newBuilder() to construct. private DiagnosticRelatedInformation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private DiagnosticRelatedInformation() { message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DiagnosticRelatedInformation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_DiagnosticRelatedInformation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_DiagnosticRelatedInformation_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.class, ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.Builder.class); } private int bitField0_; public static final int LOCATION_FIELD_NUMBER = 1; private ai.chalk.protos.chalk.lsp.v1.Location location_; /** * <code>.chalk.lsp.v1.Location location = 1 [json_name = "location"];</code> * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.lsp.v1.Location location = 1 [json_name = "location"];</code> * @return The location. */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Location getLocation() { return location_ == null ? ai.chalk.protos.chalk.lsp.v1.Location.getDefaultInstance() : location_; } /** * <code>.chalk.lsp.v1.Location location = 1 [json_name = "location"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.LocationOrBuilder getLocationOrBuilder() { return location_ == null ? ai.chalk.protos.chalk.lsp.v1.Location.getDefaultInstance() : location_; } public static final int MESSAGE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** * <code>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; } } /** * <code>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)) { output.writeMessage(1, getLocation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { 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.CodedOutputStream .computeMessageSize(1, getLocation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { 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.lsp.v1.DiagnosticRelatedInformation)) { return super.equals(obj); } ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation other = (ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation) obj; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } 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 (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } 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.lsp.v1.DiagnosticRelatedInformation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation 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.lsp.v1.DiagnosticRelatedInformation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation 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.lsp.v1.DiagnosticRelatedInformation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation 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.lsp.v1.DiagnosticRelatedInformation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation 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.lsp.v1.DiagnosticRelatedInformation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation 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.lsp.v1.DiagnosticRelatedInformation 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.lsp.v1.DiagnosticRelatedInformation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.lsp.v1.DiagnosticRelatedInformation) ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_DiagnosticRelatedInformation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_DiagnosticRelatedInformation_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.class, ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.Builder.class); } // Construct using ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } message_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_DiagnosticRelatedInformation_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation getDefaultInstanceForType() { return ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation build() { ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation buildPartial() { ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation result = new ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.message_ = message_; } 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.lsp.v1.DiagnosticRelatedInformation) { return mergeFrom((ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation other) { if (other == ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation.getDefaultInstance()) return this; if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (!other.getMessage().isEmpty()) { 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: { input.readMessage( getLocationFieldBuilder().getBuilder(), extensionRegistry); 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 ai.chalk.protos.chalk.lsp.v1.Location location_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Location, ai.chalk.protos.chalk.lsp.v1.Location.Builder, ai.chalk.protos.chalk.lsp.v1.LocationOrBuilder> locationBuilder_; /** * <code>.chalk.lsp.v1.Location location = 1 [json_name = "location"];</code> * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.lsp.v1.Location location = 1 [json_name = "location"];</code> * @return The location. */ public ai.chalk.protos.chalk.lsp.v1.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? ai.chalk.protos.chalk.lsp.v1.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** * <code>.chalk.lsp.v1.Location location = 1 [json_name = "location"];</code> */ public Builder setLocation(ai.chalk.protos.chalk.lsp.v1.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; } else { locationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.lsp.v1.Location location = 1 [json_name = "location"];</code> */ public Builder setLocation( ai.chalk.protos.chalk.lsp.v1.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { locationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.lsp.v1.Location location = 1 [json_name = "location"];</code> */ public Builder mergeLocation(ai.chalk.protos.chalk.lsp.v1.Location value) { if (locationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && location_ != null && location_ != ai.chalk.protos.chalk.lsp.v1.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; } } else { locationBuilder_.mergeFrom(value); } if (location_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * <code>.chalk.lsp.v1.Location location = 1 [json_name = "location"];</code> */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000001); location_ = null; if (locationBuilder_ != null) { locationBuilder_.dispose(); locationBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.lsp.v1.Location location = 1 [json_name = "location"];</code> */ public ai.chalk.protos.chalk.lsp.v1.Location.Builder getLocationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocationFieldBuilder().getBuilder(); } /** * <code>.chalk.lsp.v1.Location location = 1 [json_name = "location"];</code> */ public ai.chalk.protos.chalk.lsp.v1.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? ai.chalk.protos.chalk.lsp.v1.Location.getDefaultInstance() : location_; } } /** * <code>.chalk.lsp.v1.Location location = 1 [json_name = "location"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Location, ai.chalk.protos.chalk.lsp.v1.Location.Builder, ai.chalk.protos.chalk.lsp.v1.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Location, ai.chalk.protos.chalk.lsp.v1.Location.Builder, ai.chalk.protos.chalk.lsp.v1.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private java.lang.Object message_ = ""; /** * <code>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; } } /** * <code>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; } } /** * <code>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; } /** * <code>string message = 2 [json_name = "message"];</code> * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>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.lsp.v1.DiagnosticRelatedInformation) } // @@protoc_insertion_point(class_scope:chalk.lsp.v1.DiagnosticRelatedInformation) private static final ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation(); } public static ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<DiagnosticRelatedInformation> PARSER = new com.google.protobuf.AbstractParser<DiagnosticRelatedInformation>() { @java.lang.Override public DiagnosticRelatedInformation 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<DiagnosticRelatedInformation> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<DiagnosticRelatedInformation> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.DiagnosticRelatedInformation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/DiagnosticRelatedInformationOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; public interface DiagnosticRelatedInformationOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.lsp.v1.DiagnosticRelatedInformation) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.lsp.v1.Location location = 1 [json_name = "location"];</code> * @return Whether the location field is set. */ boolean hasLocation(); /** * <code>.chalk.lsp.v1.Location location = 1 [json_name = "location"];</code> * @return The location. */ ai.chalk.protos.chalk.lsp.v1.Location getLocation(); /** * <code>.chalk.lsp.v1.Location location = 1 [json_name = "location"];</code> */ ai.chalk.protos.chalk.lsp.v1.LocationOrBuilder getLocationOrBuilder(); /** * <code>string message = 2 [json_name = "message"];</code> * @return The message. */ java.lang.String getMessage(); /** * <code>string message = 2 [json_name = "message"];</code> * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/DiagnosticSeverity.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; /** * Protobuf enum {@code chalk.lsp.v1.DiagnosticSeverity} */ public enum DiagnosticSeverity implements com.google.protobuf.ProtocolMessageEnum { /** * <code>DIAGNOSTIC_SEVERITY_UNSPECIFIED = 0;</code> */ DIAGNOSTIC_SEVERITY_UNSPECIFIED(0), /** * <code>DIAGNOSTIC_SEVERITY_ERROR = 1;</code> */ DIAGNOSTIC_SEVERITY_ERROR(1), /** * <code>DIAGNOSTIC_SEVERITY_WARNING = 2;</code> */ DIAGNOSTIC_SEVERITY_WARNING(2), /** * <code>DIAGNOSTIC_SEVERITY_INFORMATION = 3;</code> */ DIAGNOSTIC_SEVERITY_INFORMATION(3), /** * <code>DIAGNOSTIC_SEVERITY_HINT = 4;</code> */ DIAGNOSTIC_SEVERITY_HINT(4), UNRECOGNIZED(-1), ; /** * <code>DIAGNOSTIC_SEVERITY_UNSPECIFIED = 0;</code> */ public static final int DIAGNOSTIC_SEVERITY_UNSPECIFIED_VALUE = 0; /** * <code>DIAGNOSTIC_SEVERITY_ERROR = 1;</code> */ public static final int DIAGNOSTIC_SEVERITY_ERROR_VALUE = 1; /** * <code>DIAGNOSTIC_SEVERITY_WARNING = 2;</code> */ public static final int DIAGNOSTIC_SEVERITY_WARNING_VALUE = 2; /** * <code>DIAGNOSTIC_SEVERITY_INFORMATION = 3;</code> */ public static final int DIAGNOSTIC_SEVERITY_INFORMATION_VALUE = 3; /** * <code>DIAGNOSTIC_SEVERITY_HINT = 4;</code> */ public static final int DIAGNOSTIC_SEVERITY_HINT_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DiagnosticSeverity 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 DiagnosticSeverity forNumber(int value) { switch (value) { case 0: return DIAGNOSTIC_SEVERITY_UNSPECIFIED; case 1: return DIAGNOSTIC_SEVERITY_ERROR; case 2: return DIAGNOSTIC_SEVERITY_WARNING; case 3: return DIAGNOSTIC_SEVERITY_INFORMATION; case 4: return DIAGNOSTIC_SEVERITY_HINT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<DiagnosticSeverity> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< DiagnosticSeverity> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<DiagnosticSeverity>() { public DiagnosticSeverity findValueByNumber(int number) { return DiagnosticSeverity.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.lsp.v1.LspProto.getDescriptor().getEnumTypes().get(0); } private static final DiagnosticSeverity[] VALUES = values(); public static DiagnosticSeverity 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 DiagnosticSeverity(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:chalk.lsp.v1.DiagnosticSeverity) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/LSP.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; /** * Protobuf type {@code chalk.lsp.v1.LSP} */ public final class LSP extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.lsp.v1.LSP) LSPOrBuilder { private static final long serialVersionUID = 0L; // Use LSP.newBuilder() to construct. private LSP(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private LSP() { diagnostics_ = java.util.Collections.emptyList(); actions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LSP(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_LSP_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_LSP_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.LSP.class, ai.chalk.protos.chalk.lsp.v1.LSP.Builder.class); } public static final int DIAGNOSTICS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams> diagnostics_; /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams> getDiagnosticsList() { return diagnostics_; } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParamsOrBuilder> getDiagnosticsOrBuilderList() { return diagnostics_; } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ @java.lang.Override public int getDiagnosticsCount() { return diagnostics_.size(); } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams getDiagnostics(int index) { return diagnostics_.get(index); } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParamsOrBuilder getDiagnosticsOrBuilder( int index) { return diagnostics_.get(index); } public static final int ACTIONS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.lsp.v1.CodeAction> actions_; /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.lsp.v1.CodeAction> getActionsList() { return actions_; } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.CodeActionOrBuilder> getActionsOrBuilderList() { return actions_; } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ @java.lang.Override public int getActionsCount() { return actions_.size(); } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.CodeAction getActions(int index) { return actions_.get(index); } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.CodeActionOrBuilder getActionsOrBuilder( int index) { return actions_.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 < diagnostics_.size(); i++) { output.writeMessage(1, diagnostics_.get(i)); } for (int i = 0; i < actions_.size(); i++) { output.writeMessage(2, actions_.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 < diagnostics_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, diagnostics_.get(i)); } for (int i = 0; i < actions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, actions_.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.lsp.v1.LSP)) { return super.equals(obj); } ai.chalk.protos.chalk.lsp.v1.LSP other = (ai.chalk.protos.chalk.lsp.v1.LSP) obj; if (!getDiagnosticsList() .equals(other.getDiagnosticsList())) return false; if (!getActionsList() .equals(other.getActionsList())) 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 (getDiagnosticsCount() > 0) { hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER; hash = (53 * hash) + getDiagnosticsList().hashCode(); } if (getActionsCount() > 0) { hash = (37 * hash) + ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getActionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.lsp.v1.LSP parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.LSP 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.lsp.v1.LSP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.LSP 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.lsp.v1.LSP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.LSP parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.lsp.v1.LSP parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.LSP 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.lsp.v1.LSP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.LSP 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.lsp.v1.LSP parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.LSP 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.lsp.v1.LSP 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.lsp.v1.LSP} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.lsp.v1.LSP) ai.chalk.protos.chalk.lsp.v1.LSPOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_LSP_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_LSP_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.LSP.class, ai.chalk.protos.chalk.lsp.v1.LSP.Builder.class); } // Construct using ai.chalk.protos.chalk.lsp.v1.LSP.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (diagnosticsBuilder_ == null) { diagnostics_ = java.util.Collections.emptyList(); } else { diagnostics_ = null; diagnosticsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); } else { actions_ = null; actionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_LSP_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.LSP getDefaultInstanceForType() { return ai.chalk.protos.chalk.lsp.v1.LSP.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.LSP build() { ai.chalk.protos.chalk.lsp.v1.LSP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.LSP buildPartial() { ai.chalk.protos.chalk.lsp.v1.LSP result = new ai.chalk.protos.chalk.lsp.v1.LSP(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.lsp.v1.LSP result) { if (diagnosticsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { diagnostics_ = java.util.Collections.unmodifiableList(diagnostics_); bitField0_ = (bitField0_ & ~0x00000001); } result.diagnostics_ = diagnostics_; } else { result.diagnostics_ = diagnosticsBuilder_.build(); } if (actionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { actions_ = java.util.Collections.unmodifiableList(actions_); bitField0_ = (bitField0_ & ~0x00000002); } result.actions_ = actions_; } else { result.actions_ = actionsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.lsp.v1.LSP 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.lsp.v1.LSP) { return mergeFrom((ai.chalk.protos.chalk.lsp.v1.LSP)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.lsp.v1.LSP other) { if (other == ai.chalk.protos.chalk.lsp.v1.LSP.getDefaultInstance()) return this; if (diagnosticsBuilder_ == null) { if (!other.diagnostics_.isEmpty()) { if (diagnostics_.isEmpty()) { diagnostics_ = other.diagnostics_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDiagnosticsIsMutable(); diagnostics_.addAll(other.diagnostics_); } onChanged(); } } else { if (!other.diagnostics_.isEmpty()) { if (diagnosticsBuilder_.isEmpty()) { diagnosticsBuilder_.dispose(); diagnosticsBuilder_ = null; diagnostics_ = other.diagnostics_; bitField0_ = (bitField0_ & ~0x00000001); diagnosticsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDiagnosticsFieldBuilder() : null; } else { diagnosticsBuilder_.addAllMessages(other.diagnostics_); } } } if (actionsBuilder_ == null) { if (!other.actions_.isEmpty()) { if (actions_.isEmpty()) { actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureActionsIsMutable(); actions_.addAll(other.actions_); } onChanged(); } } else { if (!other.actions_.isEmpty()) { if (actionsBuilder_.isEmpty()) { actionsBuilder_.dispose(); actionsBuilder_ = null; actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000002); actionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getActionsFieldBuilder() : null; } else { actionsBuilder_.addAllMessages(other.actions_); } } } 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.lsp.v1.PublishDiagnosticsParams m = input.readMessage( ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.parser(), extensionRegistry); if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.add(m); } else { diagnosticsBuilder_.addMessage(m); } break; } // case 10 case 18: { ai.chalk.protos.chalk.lsp.v1.CodeAction m = input.readMessage( ai.chalk.protos.chalk.lsp.v1.CodeAction.parser(), extensionRegistry); if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(m); } else { actionsBuilder_.addMessage(m); } 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.util.List<ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams> diagnostics_ = java.util.Collections.emptyList(); private void ensureDiagnosticsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { diagnostics_ = new java.util.ArrayList<ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams>(diagnostics_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams, ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.Builder, ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParamsOrBuilder> diagnosticsBuilder_; /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public java.util.List<ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams> getDiagnosticsList() { if (diagnosticsBuilder_ == null) { return java.util.Collections.unmodifiableList(diagnostics_); } else { return diagnosticsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public int getDiagnosticsCount() { if (diagnosticsBuilder_ == null) { return diagnostics_.size(); } else { return diagnosticsBuilder_.getCount(); } } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams getDiagnostics(int index) { if (diagnosticsBuilder_ == null) { return diagnostics_.get(index); } else { return diagnosticsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public Builder setDiagnostics( int index, ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams value) { if (diagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDiagnosticsIsMutable(); diagnostics_.set(index, value); onChanged(); } else { diagnosticsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public Builder setDiagnostics( int index, ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.Builder builderForValue) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.set(index, builderForValue.build()); onChanged(); } else { diagnosticsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public Builder addDiagnostics(ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams value) { if (diagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDiagnosticsIsMutable(); diagnostics_.add(value); onChanged(); } else { diagnosticsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public Builder addDiagnostics( int index, ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams value) { if (diagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDiagnosticsIsMutable(); diagnostics_.add(index, value); onChanged(); } else { diagnosticsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public Builder addDiagnostics( ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.Builder builderForValue) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.add(builderForValue.build()); onChanged(); } else { diagnosticsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public Builder addDiagnostics( int index, ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.Builder builderForValue) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.add(index, builderForValue.build()); onChanged(); } else { diagnosticsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public Builder addAllDiagnostics( java.lang.Iterable<? extends ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams> values) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, diagnostics_); onChanged(); } else { diagnosticsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public Builder clearDiagnostics() { if (diagnosticsBuilder_ == null) { diagnostics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { diagnosticsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public Builder removeDiagnostics(int index) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.remove(index); onChanged(); } else { diagnosticsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.Builder getDiagnosticsBuilder( int index) { return getDiagnosticsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParamsOrBuilder getDiagnosticsOrBuilder( int index) { if (diagnosticsBuilder_ == null) { return diagnostics_.get(index); } else { return diagnosticsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParamsOrBuilder> getDiagnosticsOrBuilderList() { if (diagnosticsBuilder_ != null) { return diagnosticsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(diagnostics_); } } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.Builder addDiagnosticsBuilder() { return getDiagnosticsFieldBuilder().addBuilder( ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.getDefaultInstance()); } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.Builder addDiagnosticsBuilder( int index) { return getDiagnosticsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.getDefaultInstance()); } /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ public java.util.List<ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.Builder> getDiagnosticsBuilderList() { return getDiagnosticsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams, ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.Builder, ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParamsOrBuilder> getDiagnosticsFieldBuilder() { if (diagnosticsBuilder_ == null) { diagnosticsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams, ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.Builder, ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParamsOrBuilder>( diagnostics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); diagnostics_ = null; } return diagnosticsBuilder_; } private java.util.List<ai.chalk.protos.chalk.lsp.v1.CodeAction> actions_ = java.util.Collections.emptyList(); private void ensureActionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { actions_ = new java.util.ArrayList<ai.chalk.protos.chalk.lsp.v1.CodeAction>(actions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.CodeAction, ai.chalk.protos.chalk.lsp.v1.CodeAction.Builder, ai.chalk.protos.chalk.lsp.v1.CodeActionOrBuilder> actionsBuilder_; /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public java.util.List<ai.chalk.protos.chalk.lsp.v1.CodeAction> getActionsList() { if (actionsBuilder_ == null) { return java.util.Collections.unmodifiableList(actions_); } else { return actionsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public int getActionsCount() { if (actionsBuilder_ == null) { return actions_.size(); } else { return actionsBuilder_.getCount(); } } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public ai.chalk.protos.chalk.lsp.v1.CodeAction getActions(int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public Builder setActions( int index, ai.chalk.protos.chalk.lsp.v1.CodeAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.set(index, value); onChanged(); } else { actionsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public Builder setActions( int index, ai.chalk.protos.chalk.lsp.v1.CodeAction.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.set(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public Builder addActions(ai.chalk.protos.chalk.lsp.v1.CodeAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(value); onChanged(); } else { actionsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public Builder addActions( int index, ai.chalk.protos.chalk.lsp.v1.CodeAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(index, value); onChanged(); } else { actionsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public Builder addActions( ai.chalk.protos.chalk.lsp.v1.CodeAction.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public Builder addActions( int index, ai.chalk.protos.chalk.lsp.v1.CodeAction.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public Builder addAllActions( java.lang.Iterable<? extends ai.chalk.protos.chalk.lsp.v1.CodeAction> values) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, actions_); onChanged(); } else { actionsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public Builder clearActions() { if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { actionsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public Builder removeActions(int index) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.remove(index); onChanged(); } else { actionsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public ai.chalk.protos.chalk.lsp.v1.CodeAction.Builder getActionsBuilder( int index) { return getActionsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public ai.chalk.protos.chalk.lsp.v1.CodeActionOrBuilder getActionsOrBuilder( int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.CodeActionOrBuilder> getActionsOrBuilderList() { if (actionsBuilder_ != null) { return actionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(actions_); } } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public ai.chalk.protos.chalk.lsp.v1.CodeAction.Builder addActionsBuilder() { return getActionsFieldBuilder().addBuilder( ai.chalk.protos.chalk.lsp.v1.CodeAction.getDefaultInstance()); } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public ai.chalk.protos.chalk.lsp.v1.CodeAction.Builder addActionsBuilder( int index) { return getActionsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.lsp.v1.CodeAction.getDefaultInstance()); } /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ public java.util.List<ai.chalk.protos.chalk.lsp.v1.CodeAction.Builder> getActionsBuilderList() { return getActionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.CodeAction, ai.chalk.protos.chalk.lsp.v1.CodeAction.Builder, ai.chalk.protos.chalk.lsp.v1.CodeActionOrBuilder> getActionsFieldBuilder() { if (actionsBuilder_ == null) { actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.CodeAction, ai.chalk.protos.chalk.lsp.v1.CodeAction.Builder, ai.chalk.protos.chalk.lsp.v1.CodeActionOrBuilder>( actions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); actions_ = null; } return actionsBuilder_; } @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.lsp.v1.LSP) } // @@protoc_insertion_point(class_scope:chalk.lsp.v1.LSP) private static final ai.chalk.protos.chalk.lsp.v1.LSP DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.lsp.v1.LSP(); } public static ai.chalk.protos.chalk.lsp.v1.LSP getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<LSP> PARSER = new com.google.protobuf.AbstractParser<LSP>() { @java.lang.Override public LSP 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<LSP> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<LSP> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.LSP getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/LSPOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; public interface LSPOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.lsp.v1.LSP) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ java.util.List<ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams> getDiagnosticsList(); /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams getDiagnostics(int index); /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ int getDiagnosticsCount(); /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParamsOrBuilder> getDiagnosticsOrBuilderList(); /** * <code>repeated .chalk.lsp.v1.PublishDiagnosticsParams diagnostics = 1 [json_name = "diagnostics"];</code> */ ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParamsOrBuilder getDiagnosticsOrBuilder( int index); /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ java.util.List<ai.chalk.protos.chalk.lsp.v1.CodeAction> getActionsList(); /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ ai.chalk.protos.chalk.lsp.v1.CodeAction getActions(int index); /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ int getActionsCount(); /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.CodeActionOrBuilder> getActionsOrBuilderList(); /** * <code>repeated .chalk.lsp.v1.CodeAction actions = 2 [json_name = "actions"];</code> */ ai.chalk.protos.chalk.lsp.v1.CodeActionOrBuilder getActionsOrBuilder( int index); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/Location.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; /** * Protobuf type {@code chalk.lsp.v1.Location} */ public final class Location extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.lsp.v1.Location) LocationOrBuilder { private static final long serialVersionUID = 0L; // Use Location.newBuilder() to construct. private Location(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Location() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Location(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.Location.class, ai.chalk.protos.chalk.lsp.v1.Location.Builder.class); } private int bitField0_; public static final int URI_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The uri. */ @java.lang.Override public java.lang.String getUri() { java.lang.Object ref = uri_; 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(); uri_ = s; return s; } } /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The bytes for uri. */ @java.lang.Override public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RANGE_FIELD_NUMBER = 2; private ai.chalk.protos.chalk.lsp.v1.Range range_; /** * <code>.chalk.lsp.v1.Range range = 2 [json_name = "range"];</code> * @return Whether the range field is set. */ @java.lang.Override public boolean hasRange() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.lsp.v1.Range range = 2 [json_name = "range"];</code> * @return The range. */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Range getRange() { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } /** * <code>.chalk.lsp.v1.Range range = 2 [json_name = "range"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder getRangeOrBuilder() { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } 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(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getRange()); } 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(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRange()); } 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.lsp.v1.Location)) { return super.equals(obj); } ai.chalk.protos.chalk.lsp.v1.Location other = (ai.chalk.protos.chalk.lsp.v1.Location) obj; if (!getUri() .equals(other.getUri())) return false; if (hasRange() != other.hasRange()) return false; if (hasRange()) { if (!getRange() .equals(other.getRange())) 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) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); if (hasRange()) { hash = (37 * hash) + RANGE_FIELD_NUMBER; hash = (53 * hash) + getRange().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.lsp.v1.Location parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.Location 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.lsp.v1.Location parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.Location 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.lsp.v1.Location parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.Location parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.lsp.v1.Location parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.Location 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.lsp.v1.Location parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.Location 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.lsp.v1.Location parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.Location 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.lsp.v1.Location 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.lsp.v1.Location} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.lsp.v1.Location) ai.chalk.protos.chalk.lsp.v1.LocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.Location.class, ai.chalk.protos.chalk.lsp.v1.Location.Builder.class); } // Construct using ai.chalk.protos.chalk.lsp.v1.Location.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRangeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; uri_ = ""; range_ = null; if (rangeBuilder_ != null) { rangeBuilder_.dispose(); rangeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Location_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Location getDefaultInstanceForType() { return ai.chalk.protos.chalk.lsp.v1.Location.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Location build() { ai.chalk.protos.chalk.lsp.v1.Location result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Location buildPartial() { ai.chalk.protos.chalk.lsp.v1.Location result = new ai.chalk.protos.chalk.lsp.v1.Location(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.lsp.v1.Location result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.uri_ = uri_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.range_ = rangeBuilder_ == null ? range_ : rangeBuilder_.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.lsp.v1.Location) { return mergeFrom((ai.chalk.protos.chalk.lsp.v1.Location)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.lsp.v1.Location other) { if (other == ai.chalk.protos.chalk.lsp.v1.Location.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasRange()) { mergeRange(other.getRange()); } 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: { uri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getRangeFieldBuilder().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 uri_ = ""; /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string uri = 1 [json_name = "uri"];</code> * @param value The uri to set. * @return This builder for chaining. */ public Builder setUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string uri = 1 [json_name = "uri"];</code> * @return This builder for chaining. */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string uri = 1 [json_name = "uri"];</code> * @param value The bytes for uri to set. * @return This builder for chaining. */ public Builder setUriBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private ai.chalk.protos.chalk.lsp.v1.Range range_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Range, ai.chalk.protos.chalk.lsp.v1.Range.Builder, ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder> rangeBuilder_; /** * <code>.chalk.lsp.v1.Range range = 2 [json_name = "range"];</code> * @return Whether the range field is set. */ public boolean hasRange() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.lsp.v1.Range range = 2 [json_name = "range"];</code> * @return The range. */ public ai.chalk.protos.chalk.lsp.v1.Range getRange() { if (rangeBuilder_ == null) { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } else { return rangeBuilder_.getMessage(); } } /** * <code>.chalk.lsp.v1.Range range = 2 [json_name = "range"];</code> */ public Builder setRange(ai.chalk.protos.chalk.lsp.v1.Range value) { if (rangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } range_ = value; } else { rangeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.lsp.v1.Range range = 2 [json_name = "range"];</code> */ public Builder setRange( ai.chalk.protos.chalk.lsp.v1.Range.Builder builderForValue) { if (rangeBuilder_ == null) { range_ = builderForValue.build(); } else { rangeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.lsp.v1.Range range = 2 [json_name = "range"];</code> */ public Builder mergeRange(ai.chalk.protos.chalk.lsp.v1.Range value) { if (rangeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && range_ != null && range_ != ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance()) { getRangeBuilder().mergeFrom(value); } else { range_ = value; } } else { rangeBuilder_.mergeFrom(value); } if (range_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * <code>.chalk.lsp.v1.Range range = 2 [json_name = "range"];</code> */ public Builder clearRange() { bitField0_ = (bitField0_ & ~0x00000002); range_ = null; if (rangeBuilder_ != null) { rangeBuilder_.dispose(); rangeBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.lsp.v1.Range range = 2 [json_name = "range"];</code> */ public ai.chalk.protos.chalk.lsp.v1.Range.Builder getRangeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRangeFieldBuilder().getBuilder(); } /** * <code>.chalk.lsp.v1.Range range = 2 [json_name = "range"];</code> */ public ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder getRangeOrBuilder() { if (rangeBuilder_ != null) { return rangeBuilder_.getMessageOrBuilder(); } else { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } } /** * <code>.chalk.lsp.v1.Range range = 2 [json_name = "range"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Range, ai.chalk.protos.chalk.lsp.v1.Range.Builder, ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder> getRangeFieldBuilder() { if (rangeBuilder_ == null) { rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Range, ai.chalk.protos.chalk.lsp.v1.Range.Builder, ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder>( getRange(), getParentForChildren(), isClean()); range_ = null; } return rangeBuilder_; } @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.lsp.v1.Location) } // @@protoc_insertion_point(class_scope:chalk.lsp.v1.Location) private static final ai.chalk.protos.chalk.lsp.v1.Location DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.lsp.v1.Location(); } public static ai.chalk.protos.chalk.lsp.v1.Location getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Location> PARSER = new com.google.protobuf.AbstractParser<Location>() { @java.lang.Override public Location 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<Location> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Location> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Location getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/LocationOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; public interface LocationOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.lsp.v1.Location) com.google.protobuf.MessageOrBuilder { /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The uri. */ java.lang.String getUri(); /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The bytes for uri. */ com.google.protobuf.ByteString getUriBytes(); /** * <code>.chalk.lsp.v1.Range range = 2 [json_name = "range"];</code> * @return Whether the range field is set. */ boolean hasRange(); /** * <code>.chalk.lsp.v1.Range range = 2 [json_name = "range"];</code> * @return The range. */ ai.chalk.protos.chalk.lsp.v1.Range getRange(); /** * <code>.chalk.lsp.v1.Range range = 2 [json_name = "range"];</code> */ ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder getRangeOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/LspProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; public final class LspProto { private LspProto() {} 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_lsp_v1_LSP_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_lsp_v1_LSP_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_lsp_v1_PublishDiagnosticsParams_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_lsp_v1_PublishDiagnosticsParams_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_lsp_v1_Diagnostic_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_lsp_v1_Diagnostic_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_lsp_v1_Range_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_lsp_v1_Range_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_lsp_v1_Position_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_lsp_v1_Position_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_lsp_v1_CodeAction_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_lsp_v1_CodeAction_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_lsp_v1_WorkspaceEdit_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_lsp_v1_WorkspaceEdit_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_lsp_v1_TextDocumentEdit_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_lsp_v1_TextDocumentEdit_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_lsp_v1_TextDocumentIdentifier_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_lsp_v1_TextDocumentIdentifier_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_lsp_v1_TextEdit_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_lsp_v1_TextEdit_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_lsp_v1_CodeDescription_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_lsp_v1_CodeDescription_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_lsp_v1_DiagnosticRelatedInformation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_lsp_v1_DiagnosticRelatedInformation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_lsp_v1_Location_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_lsp_v1_Location_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\026chalk/lsp/v1/lsp.proto\022\014chalk.lsp.v1\"\203" + "\001\n\003LSP\022H\n\013diagnostics\030\001 \003(\0132&.chalk.lsp." + "v1.PublishDiagnosticsParamsR\013diagnostics" + "\0222\n\007actions\030\002 \003(\0132\030.chalk.lsp.v1.CodeAct" + "ionR\007actions\"h\n\030PublishDiagnosticsParams" + "\022\020\n\003uri\030\001 \001(\tR\003uri\022:\n\013diagnostics\030\002 \003(\0132" + "\030.chalk.lsp.v1.DiagnosticR\013diagnostics\"\330" + "\002\n\nDiagnostic\022)\n\005range\030\001 \001(\0132\023.chalk.lsp" + ".v1.RangeR\005range\022\030\n\007message\030\002 \001(\tR\007messa" + "ge\022<\n\010severity\030\003 \001(\0162 .chalk.lsp.v1.Diag" + "nosticSeverityR\010severity\022\027\n\004code\030\004 \001(\tH\000" + "R\004code\210\001\001\022H\n\020code_description\030\005 \001(\0132\035.ch" + "alk.lsp.v1.CodeDescriptionR\017codeDescript" + "ion\022[\n\023related_information\030\006 \003(\0132*.chalk" + ".lsp.v1.DiagnosticRelatedInformationR\022re" + "latedInformationB\007\n\005_code\"_\n\005Range\022,\n\005st" + "art\030\001 \001(\0132\026.chalk.lsp.v1.PositionR\005start" + "\022(\n\003end\030\002 \001(\0132\026.chalk.lsp.v1.PositionR\003e" + "nd\"]\n\010Position\022\027\n\004line\030\001 \001(\005H\000R\004line\210\001\001\022" + "!\n\tcharacter\030\002 \001(\005H\001R\tcharacter\210\001\001B\007\n\005_l" + "ineB\014\n\n_character\"\217\001\n\nCodeAction\022\024\n\005titl" + "e\030\001 \001(\tR\005title\022:\n\013diagnostics\030\002 \003(\0132\030.ch" + "alk.lsp.v1.DiagnosticR\013diagnostics\022/\n\004ed" + "it\030\003 \001(\0132\033.chalk.lsp.v1.WorkspaceEditR\004e" + "dit\"Z\n\rWorkspaceEdit\022I\n\020document_changes" + "\030\001 \003(\0132\036.chalk.lsp.v1.TextDocumentEditR\017" + "documentChanges\"\213\001\n\020TextDocumentEdit\022I\n\r" + "text_document\030\001 \001(\0132$.chalk.lsp.v1.TextD" + "ocumentIdentifierR\014textDocument\022,\n\005edits" + "\030\002 \003(\0132\026.chalk.lsp.v1.TextEditR\005edits\"*\n" + "\026TextDocumentIdentifier\022\020\n\003uri\030\001 \001(\tR\003ur" + "i\"P\n\010TextEdit\022)\n\005range\030\001 \001(\0132\023.chalk.lsp" + ".v1.RangeR\005range\022\031\n\010new_text\030\002 \001(\tR\007newT" + "ext\"%\n\017CodeDescription\022\022\n\004href\030\001 \001(\tR\004hr" + "ef\"l\n\034DiagnosticRelatedInformation\0222\n\010lo" + "cation\030\001 \001(\0132\026.chalk.lsp.v1.LocationR\010lo" + "cation\022\030\n\007message\030\002 \001(\tR\007message\"G\n\010Loca" + "tion\022\020\n\003uri\030\001 \001(\tR\003uri\022)\n\005range\030\002 \001(\0132\023." + "chalk.lsp.v1.RangeR\005range*\274\001\n\022Diagnostic" + "Severity\022#\n\037DIAGNOSTIC_SEVERITY_UNSPECIF" + "IED\020\000\022\035\n\031DIAGNOSTIC_SEVERITY_ERROR\020\001\022\037\n\033" + "DIAGNOSTIC_SEVERITY_WARNING\020\002\022#\n\037DIAGNOS" + "TIC_SEVERITY_INFORMATION\020\003\022\034\n\030DIAGNOSTIC" + "_SEVERITY_HINT\020\004Bz\n\034ai.chalk.protos.chal" + "k.lsp.v1B\010LspProtoP\001\242\002\003CLX\252\002\014Chalk.Lsp.V" + "1\312\002\014Chalk\\Lsp\\V1\342\002\030Chalk\\Lsp\\V1\\GPBMetad" + "ata\352\002\016Chalk::Lsp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_chalk_lsp_v1_LSP_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_chalk_lsp_v1_LSP_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_lsp_v1_LSP_descriptor, new java.lang.String[] { "Diagnostics", "Actions", }); internal_static_chalk_lsp_v1_PublishDiagnosticsParams_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_chalk_lsp_v1_PublishDiagnosticsParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_lsp_v1_PublishDiagnosticsParams_descriptor, new java.lang.String[] { "Uri", "Diagnostics", }); internal_static_chalk_lsp_v1_Diagnostic_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_chalk_lsp_v1_Diagnostic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_lsp_v1_Diagnostic_descriptor, new java.lang.String[] { "Range", "Message", "Severity", "Code", "CodeDescription", "RelatedInformation", }); internal_static_chalk_lsp_v1_Range_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_chalk_lsp_v1_Range_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_lsp_v1_Range_descriptor, new java.lang.String[] { "Start", "End", }); internal_static_chalk_lsp_v1_Position_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_chalk_lsp_v1_Position_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_lsp_v1_Position_descriptor, new java.lang.String[] { "Line", "Character", }); internal_static_chalk_lsp_v1_CodeAction_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_chalk_lsp_v1_CodeAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_lsp_v1_CodeAction_descriptor, new java.lang.String[] { "Title", "Diagnostics", "Edit", }); internal_static_chalk_lsp_v1_WorkspaceEdit_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_chalk_lsp_v1_WorkspaceEdit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_lsp_v1_WorkspaceEdit_descriptor, new java.lang.String[] { "DocumentChanges", }); internal_static_chalk_lsp_v1_TextDocumentEdit_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_chalk_lsp_v1_TextDocumentEdit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_lsp_v1_TextDocumentEdit_descriptor, new java.lang.String[] { "TextDocument", "Edits", }); internal_static_chalk_lsp_v1_TextDocumentIdentifier_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_chalk_lsp_v1_TextDocumentIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_lsp_v1_TextDocumentIdentifier_descriptor, new java.lang.String[] { "Uri", }); internal_static_chalk_lsp_v1_TextEdit_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_chalk_lsp_v1_TextEdit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_lsp_v1_TextEdit_descriptor, new java.lang.String[] { "Range", "NewText", }); internal_static_chalk_lsp_v1_CodeDescription_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_chalk_lsp_v1_CodeDescription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_lsp_v1_CodeDescription_descriptor, new java.lang.String[] { "Href", }); internal_static_chalk_lsp_v1_DiagnosticRelatedInformation_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_chalk_lsp_v1_DiagnosticRelatedInformation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_lsp_v1_DiagnosticRelatedInformation_descriptor, new java.lang.String[] { "Location", "Message", }); internal_static_chalk_lsp_v1_Location_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_chalk_lsp_v1_Location_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_lsp_v1_Location_descriptor, new java.lang.String[] { "Uri", "Range", }); } // @@protoc_insertion_point(outer_class_scope) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/Position.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; /** * Protobuf type {@code chalk.lsp.v1.Position} */ public final class Position extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.lsp.v1.Position) PositionOrBuilder { private static final long serialVersionUID = 0L; // Use Position.newBuilder() to construct. private Position(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Position() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Position(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Position_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Position_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.Position.class, ai.chalk.protos.chalk.lsp.v1.Position.Builder.class); } private int bitField0_; public static final int LINE_FIELD_NUMBER = 1; private int line_ = 0; /** * <code>optional int32 line = 1 [json_name = "line"];</code> * @return Whether the line field is set. */ @java.lang.Override public boolean hasLine() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>optional int32 line = 1 [json_name = "line"];</code> * @return The line. */ @java.lang.Override public int getLine() { return line_; } public static final int CHARACTER_FIELD_NUMBER = 2; private int character_ = 0; /** * <code>optional int32 character = 2 [json_name = "character"];</code> * @return Whether the character field is set. */ @java.lang.Override public boolean hasCharacter() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>optional int32 character = 2 [json_name = "character"];</code> * @return The character. */ @java.lang.Override public int getCharacter() { return character_; } 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.writeInt32(1, line_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, character_); } 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 .computeInt32Size(1, line_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, character_); } 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.lsp.v1.Position)) { return super.equals(obj); } ai.chalk.protos.chalk.lsp.v1.Position other = (ai.chalk.protos.chalk.lsp.v1.Position) obj; if (hasLine() != other.hasLine()) return false; if (hasLine()) { if (getLine() != other.getLine()) return false; } if (hasCharacter() != other.hasCharacter()) return false; if (hasCharacter()) { if (getCharacter() != other.getCharacter()) 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 (hasLine()) { hash = (37 * hash) + LINE_FIELD_NUMBER; hash = (53 * hash) + getLine(); } if (hasCharacter()) { hash = (37 * hash) + CHARACTER_FIELD_NUMBER; hash = (53 * hash) + getCharacter(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.lsp.v1.Position parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.Position 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.lsp.v1.Position parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.Position 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.lsp.v1.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.Position parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.lsp.v1.Position parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.Position 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.lsp.v1.Position parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.Position 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.lsp.v1.Position parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.Position 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.lsp.v1.Position 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.lsp.v1.Position} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.lsp.v1.Position) ai.chalk.protos.chalk.lsp.v1.PositionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Position_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Position_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.Position.class, ai.chalk.protos.chalk.lsp.v1.Position.Builder.class); } // Construct using ai.chalk.protos.chalk.lsp.v1.Position.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; line_ = 0; character_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Position_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Position getDefaultInstanceForType() { return ai.chalk.protos.chalk.lsp.v1.Position.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Position build() { ai.chalk.protos.chalk.lsp.v1.Position result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Position buildPartial() { ai.chalk.protos.chalk.lsp.v1.Position result = new ai.chalk.protos.chalk.lsp.v1.Position(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.lsp.v1.Position result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.line_ = line_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.character_ = character_; 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.lsp.v1.Position) { return mergeFrom((ai.chalk.protos.chalk.lsp.v1.Position)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.lsp.v1.Position other) { if (other == ai.chalk.protos.chalk.lsp.v1.Position.getDefaultInstance()) return this; if (other.hasLine()) { setLine(other.getLine()); } if (other.hasCharacter()) { setCharacter(other.getCharacter()); } 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: { line_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { character_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 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 line_ ; /** * <code>optional int32 line = 1 [json_name = "line"];</code> * @return Whether the line field is set. */ @java.lang.Override public boolean hasLine() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>optional int32 line = 1 [json_name = "line"];</code> * @return The line. */ @java.lang.Override public int getLine() { return line_; } /** * <code>optional int32 line = 1 [json_name = "line"];</code> * @param value The line to set. * @return This builder for chaining. */ public Builder setLine(int value) { line_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>optional int32 line = 1 [json_name = "line"];</code> * @return This builder for chaining. */ public Builder clearLine() { bitField0_ = (bitField0_ & ~0x00000001); line_ = 0; onChanged(); return this; } private int character_ ; /** * <code>optional int32 character = 2 [json_name = "character"];</code> * @return Whether the character field is set. */ @java.lang.Override public boolean hasCharacter() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>optional int32 character = 2 [json_name = "character"];</code> * @return The character. */ @java.lang.Override public int getCharacter() { return character_; } /** * <code>optional int32 character = 2 [json_name = "character"];</code> * @param value The character to set. * @return This builder for chaining. */ public Builder setCharacter(int value) { character_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>optional int32 character = 2 [json_name = "character"];</code> * @return This builder for chaining. */ public Builder clearCharacter() { bitField0_ = (bitField0_ & ~0x00000002); character_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.lsp.v1.Position) } // @@protoc_insertion_point(class_scope:chalk.lsp.v1.Position) private static final ai.chalk.protos.chalk.lsp.v1.Position DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.lsp.v1.Position(); } public static ai.chalk.protos.chalk.lsp.v1.Position getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Position> PARSER = new com.google.protobuf.AbstractParser<Position>() { @java.lang.Override public Position 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<Position> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Position> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Position getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/PositionOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; public interface PositionOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.lsp.v1.Position) com.google.protobuf.MessageOrBuilder { /** * <code>optional int32 line = 1 [json_name = "line"];</code> * @return Whether the line field is set. */ boolean hasLine(); /** * <code>optional int32 line = 1 [json_name = "line"];</code> * @return The line. */ int getLine(); /** * <code>optional int32 character = 2 [json_name = "character"];</code> * @return Whether the character field is set. */ boolean hasCharacter(); /** * <code>optional int32 character = 2 [json_name = "character"];</code> * @return The character. */ int getCharacter(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/PublishDiagnosticsParams.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; /** * Protobuf type {@code chalk.lsp.v1.PublishDiagnosticsParams} */ public final class PublishDiagnosticsParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.lsp.v1.PublishDiagnosticsParams) PublishDiagnosticsParamsOrBuilder { private static final long serialVersionUID = 0L; // Use PublishDiagnosticsParams.newBuilder() to construct. private PublishDiagnosticsParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private PublishDiagnosticsParams() { uri_ = ""; diagnostics_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PublishDiagnosticsParams(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_PublishDiagnosticsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_PublishDiagnosticsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.class, ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.Builder.class); } public static final int URI_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The uri. */ @java.lang.Override public java.lang.String getUri() { java.lang.Object ref = uri_; 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(); uri_ = s; return s; } } /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The bytes for uri. */ @java.lang.Override public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DIAGNOSTICS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.lsp.v1.Diagnostic> diagnostics_; /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.lsp.v1.Diagnostic> getDiagnosticsList() { return diagnostics_; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder> getDiagnosticsOrBuilderList() { return diagnostics_; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ @java.lang.Override public int getDiagnosticsCount() { return diagnostics_.size(); } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Diagnostic getDiagnostics(int index) { return diagnostics_.get(index); } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder getDiagnosticsOrBuilder( int index) { return diagnostics_.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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } for (int i = 0; i < diagnostics_.size(); i++) { output.writeMessage(2, diagnostics_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } for (int i = 0; i < diagnostics_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, diagnostics_.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.lsp.v1.PublishDiagnosticsParams)) { return super.equals(obj); } ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams other = (ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams) obj; if (!getUri() .equals(other.getUri())) return false; if (!getDiagnosticsList() .equals(other.getDiagnosticsList())) 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) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); if (getDiagnosticsCount() > 0) { hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER; hash = (53 * hash) + getDiagnosticsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams 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.lsp.v1.PublishDiagnosticsParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams 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.lsp.v1.PublishDiagnosticsParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams 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.lsp.v1.PublishDiagnosticsParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams 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.lsp.v1.PublishDiagnosticsParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams 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.lsp.v1.PublishDiagnosticsParams 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.lsp.v1.PublishDiagnosticsParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.lsp.v1.PublishDiagnosticsParams) ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_PublishDiagnosticsParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_PublishDiagnosticsParams_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.class, ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.Builder.class); } // Construct using ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; uri_ = ""; if (diagnosticsBuilder_ == null) { diagnostics_ = java.util.Collections.emptyList(); } else { diagnostics_ = null; diagnosticsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_PublishDiagnosticsParams_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams getDefaultInstanceForType() { return ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams build() { ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams buildPartial() { ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams result = new ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams result) { if (diagnosticsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { diagnostics_ = java.util.Collections.unmodifiableList(diagnostics_); bitField0_ = (bitField0_ & ~0x00000002); } result.diagnostics_ = diagnostics_; } else { result.diagnostics_ = diagnosticsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.uri_ = uri_; } } @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.lsp.v1.PublishDiagnosticsParams) { return mergeFrom((ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams other) { if (other == ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000001; onChanged(); } if (diagnosticsBuilder_ == null) { if (!other.diagnostics_.isEmpty()) { if (diagnostics_.isEmpty()) { diagnostics_ = other.diagnostics_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDiagnosticsIsMutable(); diagnostics_.addAll(other.diagnostics_); } onChanged(); } } else { if (!other.diagnostics_.isEmpty()) { if (diagnosticsBuilder_.isEmpty()) { diagnosticsBuilder_.dispose(); diagnosticsBuilder_ = null; diagnostics_ = other.diagnostics_; bitField0_ = (bitField0_ & ~0x00000002); diagnosticsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDiagnosticsFieldBuilder() : null; } else { diagnosticsBuilder_.addAllMessages(other.diagnostics_); } } } 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: { uri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ai.chalk.protos.chalk.lsp.v1.Diagnostic m = input.readMessage( ai.chalk.protos.chalk.lsp.v1.Diagnostic.parser(), extensionRegistry); if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.add(m); } else { diagnosticsBuilder_.addMessage(m); } 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 uri_ = ""; /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string uri = 1 [json_name = "uri"];</code> * @param value The uri to set. * @return This builder for chaining. */ public Builder setUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string uri = 1 [json_name = "uri"];</code> * @return This builder for chaining. */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string uri = 1 [json_name = "uri"];</code> * @param value The bytes for uri to set. * @return This builder for chaining. */ public Builder setUriBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List<ai.chalk.protos.chalk.lsp.v1.Diagnostic> diagnostics_ = java.util.Collections.emptyList(); private void ensureDiagnosticsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { diagnostics_ = new java.util.ArrayList<ai.chalk.protos.chalk.lsp.v1.Diagnostic>(diagnostics_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Diagnostic, ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder, ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder> diagnosticsBuilder_; /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public java.util.List<ai.chalk.protos.chalk.lsp.v1.Diagnostic> getDiagnosticsList() { if (diagnosticsBuilder_ == null) { return java.util.Collections.unmodifiableList(diagnostics_); } else { return diagnosticsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public int getDiagnosticsCount() { if (diagnosticsBuilder_ == null) { return diagnostics_.size(); } else { return diagnosticsBuilder_.getCount(); } } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public ai.chalk.protos.chalk.lsp.v1.Diagnostic getDiagnostics(int index) { if (diagnosticsBuilder_ == null) { return diagnostics_.get(index); } else { return diagnosticsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder setDiagnostics( int index, ai.chalk.protos.chalk.lsp.v1.Diagnostic value) { if (diagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDiagnosticsIsMutable(); diagnostics_.set(index, value); onChanged(); } else { diagnosticsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder setDiagnostics( int index, ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder builderForValue) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.set(index, builderForValue.build()); onChanged(); } else { diagnosticsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder addDiagnostics(ai.chalk.protos.chalk.lsp.v1.Diagnostic value) { if (diagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDiagnosticsIsMutable(); diagnostics_.add(value); onChanged(); } else { diagnosticsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder addDiagnostics( int index, ai.chalk.protos.chalk.lsp.v1.Diagnostic value) { if (diagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDiagnosticsIsMutable(); diagnostics_.add(index, value); onChanged(); } else { diagnosticsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder addDiagnostics( ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder builderForValue) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.add(builderForValue.build()); onChanged(); } else { diagnosticsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder addDiagnostics( int index, ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder builderForValue) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.add(index, builderForValue.build()); onChanged(); } else { diagnosticsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder addAllDiagnostics( java.lang.Iterable<? extends ai.chalk.protos.chalk.lsp.v1.Diagnostic> values) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, diagnostics_); onChanged(); } else { diagnosticsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder clearDiagnostics() { if (diagnosticsBuilder_ == null) { diagnostics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { diagnosticsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public Builder removeDiagnostics(int index) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.remove(index); onChanged(); } else { diagnosticsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder getDiagnosticsBuilder( int index) { return getDiagnosticsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder getDiagnosticsOrBuilder( int index) { if (diagnosticsBuilder_ == null) { return diagnostics_.get(index); } else { return diagnosticsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder> getDiagnosticsOrBuilderList() { if (diagnosticsBuilder_ != null) { return diagnosticsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(diagnostics_); } } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder addDiagnosticsBuilder() { return getDiagnosticsFieldBuilder().addBuilder( ai.chalk.protos.chalk.lsp.v1.Diagnostic.getDefaultInstance()); } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder addDiagnosticsBuilder( int index) { return getDiagnosticsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.lsp.v1.Diagnostic.getDefaultInstance()); } /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ public java.util.List<ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder> getDiagnosticsBuilderList() { return getDiagnosticsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Diagnostic, ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder, ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder> getDiagnosticsFieldBuilder() { if (diagnosticsBuilder_ == null) { diagnosticsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Diagnostic, ai.chalk.protos.chalk.lsp.v1.Diagnostic.Builder, ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder>( diagnostics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); diagnostics_ = null; } return diagnosticsBuilder_; } @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.lsp.v1.PublishDiagnosticsParams) } // @@protoc_insertion_point(class_scope:chalk.lsp.v1.PublishDiagnosticsParams) private static final ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams(); } public static ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<PublishDiagnosticsParams> PARSER = new com.google.protobuf.AbstractParser<PublishDiagnosticsParams>() { @java.lang.Override public PublishDiagnosticsParams 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<PublishDiagnosticsParams> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<PublishDiagnosticsParams> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.PublishDiagnosticsParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/PublishDiagnosticsParamsOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; public interface PublishDiagnosticsParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.lsp.v1.PublishDiagnosticsParams) com.google.protobuf.MessageOrBuilder { /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The uri. */ java.lang.String getUri(); /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The bytes for uri. */ com.google.protobuf.ByteString getUriBytes(); /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ java.util.List<ai.chalk.protos.chalk.lsp.v1.Diagnostic> getDiagnosticsList(); /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ ai.chalk.protos.chalk.lsp.v1.Diagnostic getDiagnostics(int index); /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ int getDiagnosticsCount(); /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder> getDiagnosticsOrBuilderList(); /** * <code>repeated .chalk.lsp.v1.Diagnostic diagnostics = 2 [json_name = "diagnostics"];</code> */ ai.chalk.protos.chalk.lsp.v1.DiagnosticOrBuilder getDiagnosticsOrBuilder( int index); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/Range.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; /** * Protobuf type {@code chalk.lsp.v1.Range} */ public final class Range extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.lsp.v1.Range) RangeOrBuilder { private static final long serialVersionUID = 0L; // Use Range.newBuilder() to construct. private Range(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Range() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Range(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.Range.class, ai.chalk.protos.chalk.lsp.v1.Range.Builder.class); } private int bitField0_; public static final int START_FIELD_NUMBER = 1; private ai.chalk.protos.chalk.lsp.v1.Position start_; /** * <code>.chalk.lsp.v1.Position start = 1 [json_name = "start"];</code> * @return Whether the start field is set. */ @java.lang.Override public boolean hasStart() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.lsp.v1.Position start = 1 [json_name = "start"];</code> * @return The start. */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Position getStart() { return start_ == null ? ai.chalk.protos.chalk.lsp.v1.Position.getDefaultInstance() : start_; } /** * <code>.chalk.lsp.v1.Position start = 1 [json_name = "start"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.PositionOrBuilder getStartOrBuilder() { return start_ == null ? ai.chalk.protos.chalk.lsp.v1.Position.getDefaultInstance() : start_; } public static final int END_FIELD_NUMBER = 2; private ai.chalk.protos.chalk.lsp.v1.Position end_; /** * <code>.chalk.lsp.v1.Position end = 2 [json_name = "end"];</code> * @return Whether the end field is set. */ @java.lang.Override public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.lsp.v1.Position end = 2 [json_name = "end"];</code> * @return The end. */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Position getEnd() { return end_ == null ? ai.chalk.protos.chalk.lsp.v1.Position.getDefaultInstance() : end_; } /** * <code>.chalk.lsp.v1.Position end = 2 [json_name = "end"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.PositionOrBuilder getEndOrBuilder() { return end_ == null ? ai.chalk.protos.chalk.lsp.v1.Position.getDefaultInstance() : end_; } 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, getStart()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getEnd()); } 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, getStart()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEnd()); } 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.lsp.v1.Range)) { return super.equals(obj); } ai.chalk.protos.chalk.lsp.v1.Range other = (ai.chalk.protos.chalk.lsp.v1.Range) obj; if (hasStart() != other.hasStart()) return false; if (hasStart()) { if (!getStart() .equals(other.getStart())) return false; } if (hasEnd() != other.hasEnd()) return false; if (hasEnd()) { if (!getEnd() .equals(other.getEnd())) 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 (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + getStart().hashCode(); } if (hasEnd()) { hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + getEnd().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.lsp.v1.Range parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.Range 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.lsp.v1.Range parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.Range 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.lsp.v1.Range parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.Range parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.lsp.v1.Range parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.Range 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.lsp.v1.Range parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.Range 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.lsp.v1.Range parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.Range 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.lsp.v1.Range 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.lsp.v1.Range} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.lsp.v1.Range) ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Range_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Range_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.Range.class, ai.chalk.protos.chalk.lsp.v1.Range.Builder.class); } // Construct using ai.chalk.protos.chalk.lsp.v1.Range.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStartFieldBuilder(); getEndFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; start_ = null; if (startBuilder_ != null) { startBuilder_.dispose(); startBuilder_ = null; } end_ = null; if (endBuilder_ != null) { endBuilder_.dispose(); endBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_Range_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Range getDefaultInstanceForType() { return ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Range build() { ai.chalk.protos.chalk.lsp.v1.Range result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Range buildPartial() { ai.chalk.protos.chalk.lsp.v1.Range result = new ai.chalk.protos.chalk.lsp.v1.Range(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.lsp.v1.Range result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.start_ = startBuilder_ == null ? start_ : startBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.end_ = endBuilder_ == null ? end_ : endBuilder_.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.lsp.v1.Range) { return mergeFrom((ai.chalk.protos.chalk.lsp.v1.Range)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.lsp.v1.Range other) { if (other == ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance()) return this; if (other.hasStart()) { mergeStart(other.getStart()); } if (other.hasEnd()) { mergeEnd(other.getEnd()); } 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( getStartFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getEndFieldBuilder().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 ai.chalk.protos.chalk.lsp.v1.Position start_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Position, ai.chalk.protos.chalk.lsp.v1.Position.Builder, ai.chalk.protos.chalk.lsp.v1.PositionOrBuilder> startBuilder_; /** * <code>.chalk.lsp.v1.Position start = 1 [json_name = "start"];</code> * @return Whether the start field is set. */ public boolean hasStart() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.lsp.v1.Position start = 1 [json_name = "start"];</code> * @return The start. */ public ai.chalk.protos.chalk.lsp.v1.Position getStart() { if (startBuilder_ == null) { return start_ == null ? ai.chalk.protos.chalk.lsp.v1.Position.getDefaultInstance() : start_; } else { return startBuilder_.getMessage(); } } /** * <code>.chalk.lsp.v1.Position start = 1 [json_name = "start"];</code> */ public Builder setStart(ai.chalk.protos.chalk.lsp.v1.Position value) { if (startBuilder_ == null) { if (value == null) { throw new NullPointerException(); } start_ = value; } else { startBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.lsp.v1.Position start = 1 [json_name = "start"];</code> */ public Builder setStart( ai.chalk.protos.chalk.lsp.v1.Position.Builder builderForValue) { if (startBuilder_ == null) { start_ = builderForValue.build(); } else { startBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.lsp.v1.Position start = 1 [json_name = "start"];</code> */ public Builder mergeStart(ai.chalk.protos.chalk.lsp.v1.Position value) { if (startBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && start_ != null && start_ != ai.chalk.protos.chalk.lsp.v1.Position.getDefaultInstance()) { getStartBuilder().mergeFrom(value); } else { start_ = value; } } else { startBuilder_.mergeFrom(value); } if (start_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * <code>.chalk.lsp.v1.Position start = 1 [json_name = "start"];</code> */ public Builder clearStart() { bitField0_ = (bitField0_ & ~0x00000001); start_ = null; if (startBuilder_ != null) { startBuilder_.dispose(); startBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.lsp.v1.Position start = 1 [json_name = "start"];</code> */ public ai.chalk.protos.chalk.lsp.v1.Position.Builder getStartBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStartFieldBuilder().getBuilder(); } /** * <code>.chalk.lsp.v1.Position start = 1 [json_name = "start"];</code> */ public ai.chalk.protos.chalk.lsp.v1.PositionOrBuilder getStartOrBuilder() { if (startBuilder_ != null) { return startBuilder_.getMessageOrBuilder(); } else { return start_ == null ? ai.chalk.protos.chalk.lsp.v1.Position.getDefaultInstance() : start_; } } /** * <code>.chalk.lsp.v1.Position start = 1 [json_name = "start"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Position, ai.chalk.protos.chalk.lsp.v1.Position.Builder, ai.chalk.protos.chalk.lsp.v1.PositionOrBuilder> getStartFieldBuilder() { if (startBuilder_ == null) { startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Position, ai.chalk.protos.chalk.lsp.v1.Position.Builder, ai.chalk.protos.chalk.lsp.v1.PositionOrBuilder>( getStart(), getParentForChildren(), isClean()); start_ = null; } return startBuilder_; } private ai.chalk.protos.chalk.lsp.v1.Position end_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Position, ai.chalk.protos.chalk.lsp.v1.Position.Builder, ai.chalk.protos.chalk.lsp.v1.PositionOrBuilder> endBuilder_; /** * <code>.chalk.lsp.v1.Position end = 2 [json_name = "end"];</code> * @return Whether the end field is set. */ public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>.chalk.lsp.v1.Position end = 2 [json_name = "end"];</code> * @return The end. */ public ai.chalk.protos.chalk.lsp.v1.Position getEnd() { if (endBuilder_ == null) { return end_ == null ? ai.chalk.protos.chalk.lsp.v1.Position.getDefaultInstance() : end_; } else { return endBuilder_.getMessage(); } } /** * <code>.chalk.lsp.v1.Position end = 2 [json_name = "end"];</code> */ public Builder setEnd(ai.chalk.protos.chalk.lsp.v1.Position value) { if (endBuilder_ == null) { if (value == null) { throw new NullPointerException(); } end_ = value; } else { endBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.lsp.v1.Position end = 2 [json_name = "end"];</code> */ public Builder setEnd( ai.chalk.protos.chalk.lsp.v1.Position.Builder builderForValue) { if (endBuilder_ == null) { end_ = builderForValue.build(); } else { endBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>.chalk.lsp.v1.Position end = 2 [json_name = "end"];</code> */ public Builder mergeEnd(ai.chalk.protos.chalk.lsp.v1.Position value) { if (endBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && end_ != null && end_ != ai.chalk.protos.chalk.lsp.v1.Position.getDefaultInstance()) { getEndBuilder().mergeFrom(value); } else { end_ = value; } } else { endBuilder_.mergeFrom(value); } if (end_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * <code>.chalk.lsp.v1.Position end = 2 [json_name = "end"];</code> */ public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000002); end_ = null; if (endBuilder_ != null) { endBuilder_.dispose(); endBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.lsp.v1.Position end = 2 [json_name = "end"];</code> */ public ai.chalk.protos.chalk.lsp.v1.Position.Builder getEndBuilder() { bitField0_ |= 0x00000002; onChanged(); return getEndFieldBuilder().getBuilder(); } /** * <code>.chalk.lsp.v1.Position end = 2 [json_name = "end"];</code> */ public ai.chalk.protos.chalk.lsp.v1.PositionOrBuilder getEndOrBuilder() { if (endBuilder_ != null) { return endBuilder_.getMessageOrBuilder(); } else { return end_ == null ? ai.chalk.protos.chalk.lsp.v1.Position.getDefaultInstance() : end_; } } /** * <code>.chalk.lsp.v1.Position end = 2 [json_name = "end"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Position, ai.chalk.protos.chalk.lsp.v1.Position.Builder, ai.chalk.protos.chalk.lsp.v1.PositionOrBuilder> getEndFieldBuilder() { if (endBuilder_ == null) { endBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Position, ai.chalk.protos.chalk.lsp.v1.Position.Builder, ai.chalk.protos.chalk.lsp.v1.PositionOrBuilder>( getEnd(), getParentForChildren(), isClean()); end_ = null; } return endBuilder_; } @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.lsp.v1.Range) } // @@protoc_insertion_point(class_scope:chalk.lsp.v1.Range) private static final ai.chalk.protos.chalk.lsp.v1.Range DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.lsp.v1.Range(); } public static ai.chalk.protos.chalk.lsp.v1.Range getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Range> PARSER = new com.google.protobuf.AbstractParser<Range>() { @java.lang.Override public Range 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<Range> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Range> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Range getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/RangeOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; public interface RangeOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.lsp.v1.Range) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.lsp.v1.Position start = 1 [json_name = "start"];</code> * @return Whether the start field is set. */ boolean hasStart(); /** * <code>.chalk.lsp.v1.Position start = 1 [json_name = "start"];</code> * @return The start. */ ai.chalk.protos.chalk.lsp.v1.Position getStart(); /** * <code>.chalk.lsp.v1.Position start = 1 [json_name = "start"];</code> */ ai.chalk.protos.chalk.lsp.v1.PositionOrBuilder getStartOrBuilder(); /** * <code>.chalk.lsp.v1.Position end = 2 [json_name = "end"];</code> * @return Whether the end field is set. */ boolean hasEnd(); /** * <code>.chalk.lsp.v1.Position end = 2 [json_name = "end"];</code> * @return The end. */ ai.chalk.protos.chalk.lsp.v1.Position getEnd(); /** * <code>.chalk.lsp.v1.Position end = 2 [json_name = "end"];</code> */ ai.chalk.protos.chalk.lsp.v1.PositionOrBuilder getEndOrBuilder(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/TextDocumentEdit.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; /** * Protobuf type {@code chalk.lsp.v1.TextDocumentEdit} */ public final class TextDocumentEdit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.lsp.v1.TextDocumentEdit) TextDocumentEditOrBuilder { private static final long serialVersionUID = 0L; // Use TextDocumentEdit.newBuilder() to construct. private TextDocumentEdit(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private TextDocumentEdit() { edits_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TextDocumentEdit(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_TextDocumentEdit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_TextDocumentEdit_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.class, ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.Builder.class); } private int bitField0_; public static final int TEXT_DOCUMENT_FIELD_NUMBER = 1; private ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier textDocument_; /** * <code>.chalk.lsp.v1.TextDocumentIdentifier text_document = 1 [json_name = "textDocument"];</code> * @return Whether the textDocument field is set. */ @java.lang.Override public boolean hasTextDocument() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.lsp.v1.TextDocumentIdentifier text_document = 1 [json_name = "textDocument"];</code> * @return The textDocument. */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier getTextDocument() { return textDocument_ == null ? ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.getDefaultInstance() : textDocument_; } /** * <code>.chalk.lsp.v1.TextDocumentIdentifier text_document = 1 [json_name = "textDocument"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifierOrBuilder getTextDocumentOrBuilder() { return textDocument_ == null ? ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.getDefaultInstance() : textDocument_; } public static final int EDITS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.lsp.v1.TextEdit> edits_; /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.lsp.v1.TextEdit> getEditsList() { return edits_; } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.TextEditOrBuilder> getEditsOrBuilderList() { return edits_; } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ @java.lang.Override public int getEditsCount() { return edits_.size(); } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextEdit getEdits(int index) { return edits_.get(index); } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextEditOrBuilder getEditsOrBuilder( int index) { return edits_.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 { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTextDocument()); } for (int i = 0; i < edits_.size(); i++) { output.writeMessage(2, edits_.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.CodedOutputStream .computeMessageSize(1, getTextDocument()); } for (int i = 0; i < edits_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, edits_.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.lsp.v1.TextDocumentEdit)) { return super.equals(obj); } ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit other = (ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit) obj; if (hasTextDocument() != other.hasTextDocument()) return false; if (hasTextDocument()) { if (!getTextDocument() .equals(other.getTextDocument())) return false; } if (!getEditsList() .equals(other.getEditsList())) 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 (hasTextDocument()) { hash = (37 * hash) + TEXT_DOCUMENT_FIELD_NUMBER; hash = (53 * hash) + getTextDocument().hashCode(); } if (getEditsCount() > 0) { hash = (37 * hash) + EDITS_FIELD_NUMBER; hash = (53 * hash) + getEditsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit 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.lsp.v1.TextDocumentEdit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit 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.lsp.v1.TextDocumentEdit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit 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.lsp.v1.TextDocumentEdit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit 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.lsp.v1.TextDocumentEdit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit 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.lsp.v1.TextDocumentEdit 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.lsp.v1.TextDocumentEdit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.lsp.v1.TextDocumentEdit) ai.chalk.protos.chalk.lsp.v1.TextDocumentEditOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_TextDocumentEdit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_TextDocumentEdit_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.class, ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.Builder.class); } // Construct using ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTextDocumentFieldBuilder(); getEditsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; textDocument_ = null; if (textDocumentBuilder_ != null) { textDocumentBuilder_.dispose(); textDocumentBuilder_ = null; } if (editsBuilder_ == null) { edits_ = java.util.Collections.emptyList(); } else { edits_ = null; editsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_TextDocumentEdit_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit getDefaultInstanceForType() { return ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit build() { ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit buildPartial() { ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit result = new ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit result) { if (editsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { edits_ = java.util.Collections.unmodifiableList(edits_); bitField0_ = (bitField0_ & ~0x00000002); } result.edits_ = edits_; } else { result.edits_ = editsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.textDocument_ = textDocumentBuilder_ == null ? textDocument_ : textDocumentBuilder_.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.lsp.v1.TextDocumentEdit) { return mergeFrom((ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit other) { if (other == ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.getDefaultInstance()) return this; if (other.hasTextDocument()) { mergeTextDocument(other.getTextDocument()); } if (editsBuilder_ == null) { if (!other.edits_.isEmpty()) { if (edits_.isEmpty()) { edits_ = other.edits_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEditsIsMutable(); edits_.addAll(other.edits_); } onChanged(); } } else { if (!other.edits_.isEmpty()) { if (editsBuilder_.isEmpty()) { editsBuilder_.dispose(); editsBuilder_ = null; edits_ = other.edits_; bitField0_ = (bitField0_ & ~0x00000002); editsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEditsFieldBuilder() : null; } else { editsBuilder_.addAllMessages(other.edits_); } } } 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( getTextDocumentFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { ai.chalk.protos.chalk.lsp.v1.TextEdit m = input.readMessage( ai.chalk.protos.chalk.lsp.v1.TextEdit.parser(), extensionRegistry); if (editsBuilder_ == null) { ensureEditsIsMutable(); edits_.add(m); } else { editsBuilder_.addMessage(m); } 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.lsp.v1.TextDocumentIdentifier textDocument_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier, ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.Builder, ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifierOrBuilder> textDocumentBuilder_; /** * <code>.chalk.lsp.v1.TextDocumentIdentifier text_document = 1 [json_name = "textDocument"];</code> * @return Whether the textDocument field is set. */ public boolean hasTextDocument() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.lsp.v1.TextDocumentIdentifier text_document = 1 [json_name = "textDocument"];</code> * @return The textDocument. */ public ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier getTextDocument() { if (textDocumentBuilder_ == null) { return textDocument_ == null ? ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.getDefaultInstance() : textDocument_; } else { return textDocumentBuilder_.getMessage(); } } /** * <code>.chalk.lsp.v1.TextDocumentIdentifier text_document = 1 [json_name = "textDocument"];</code> */ public Builder setTextDocument(ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier value) { if (textDocumentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } textDocument_ = value; } else { textDocumentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.lsp.v1.TextDocumentIdentifier text_document = 1 [json_name = "textDocument"];</code> */ public Builder setTextDocument( ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.Builder builderForValue) { if (textDocumentBuilder_ == null) { textDocument_ = builderForValue.build(); } else { textDocumentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.lsp.v1.TextDocumentIdentifier text_document = 1 [json_name = "textDocument"];</code> */ public Builder mergeTextDocument(ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier value) { if (textDocumentBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && textDocument_ != null && textDocument_ != ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.getDefaultInstance()) { getTextDocumentBuilder().mergeFrom(value); } else { textDocument_ = value; } } else { textDocumentBuilder_.mergeFrom(value); } if (textDocument_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * <code>.chalk.lsp.v1.TextDocumentIdentifier text_document = 1 [json_name = "textDocument"];</code> */ public Builder clearTextDocument() { bitField0_ = (bitField0_ & ~0x00000001); textDocument_ = null; if (textDocumentBuilder_ != null) { textDocumentBuilder_.dispose(); textDocumentBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.lsp.v1.TextDocumentIdentifier text_document = 1 [json_name = "textDocument"];</code> */ public ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.Builder getTextDocumentBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTextDocumentFieldBuilder().getBuilder(); } /** * <code>.chalk.lsp.v1.TextDocumentIdentifier text_document = 1 [json_name = "textDocument"];</code> */ public ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifierOrBuilder getTextDocumentOrBuilder() { if (textDocumentBuilder_ != null) { return textDocumentBuilder_.getMessageOrBuilder(); } else { return textDocument_ == null ? ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.getDefaultInstance() : textDocument_; } } /** * <code>.chalk.lsp.v1.TextDocumentIdentifier text_document = 1 [json_name = "textDocument"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier, ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.Builder, ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifierOrBuilder> getTextDocumentFieldBuilder() { if (textDocumentBuilder_ == null) { textDocumentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier, ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.Builder, ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifierOrBuilder>( getTextDocument(), getParentForChildren(), isClean()); textDocument_ = null; } return textDocumentBuilder_; } private java.util.List<ai.chalk.protos.chalk.lsp.v1.TextEdit> edits_ = java.util.Collections.emptyList(); private void ensureEditsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { edits_ = new java.util.ArrayList<ai.chalk.protos.chalk.lsp.v1.TextEdit>(edits_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.TextEdit, ai.chalk.protos.chalk.lsp.v1.TextEdit.Builder, ai.chalk.protos.chalk.lsp.v1.TextEditOrBuilder> editsBuilder_; /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public java.util.List<ai.chalk.protos.chalk.lsp.v1.TextEdit> getEditsList() { if (editsBuilder_ == null) { return java.util.Collections.unmodifiableList(edits_); } else { return editsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public int getEditsCount() { if (editsBuilder_ == null) { return edits_.size(); } else { return editsBuilder_.getCount(); } } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public ai.chalk.protos.chalk.lsp.v1.TextEdit getEdits(int index) { if (editsBuilder_ == null) { return edits_.get(index); } else { return editsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public Builder setEdits( int index, ai.chalk.protos.chalk.lsp.v1.TextEdit value) { if (editsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEditsIsMutable(); edits_.set(index, value); onChanged(); } else { editsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public Builder setEdits( int index, ai.chalk.protos.chalk.lsp.v1.TextEdit.Builder builderForValue) { if (editsBuilder_ == null) { ensureEditsIsMutable(); edits_.set(index, builderForValue.build()); onChanged(); } else { editsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public Builder addEdits(ai.chalk.protos.chalk.lsp.v1.TextEdit value) { if (editsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEditsIsMutable(); edits_.add(value); onChanged(); } else { editsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public Builder addEdits( int index, ai.chalk.protos.chalk.lsp.v1.TextEdit value) { if (editsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEditsIsMutable(); edits_.add(index, value); onChanged(); } else { editsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public Builder addEdits( ai.chalk.protos.chalk.lsp.v1.TextEdit.Builder builderForValue) { if (editsBuilder_ == null) { ensureEditsIsMutable(); edits_.add(builderForValue.build()); onChanged(); } else { editsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public Builder addEdits( int index, ai.chalk.protos.chalk.lsp.v1.TextEdit.Builder builderForValue) { if (editsBuilder_ == null) { ensureEditsIsMutable(); edits_.add(index, builderForValue.build()); onChanged(); } else { editsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public Builder addAllEdits( java.lang.Iterable<? extends ai.chalk.protos.chalk.lsp.v1.TextEdit> values) { if (editsBuilder_ == null) { ensureEditsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, edits_); onChanged(); } else { editsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public Builder clearEdits() { if (editsBuilder_ == null) { edits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { editsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public Builder removeEdits(int index) { if (editsBuilder_ == null) { ensureEditsIsMutable(); edits_.remove(index); onChanged(); } else { editsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public ai.chalk.protos.chalk.lsp.v1.TextEdit.Builder getEditsBuilder( int index) { return getEditsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public ai.chalk.protos.chalk.lsp.v1.TextEditOrBuilder getEditsOrBuilder( int index) { if (editsBuilder_ == null) { return edits_.get(index); } else { return editsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.TextEditOrBuilder> getEditsOrBuilderList() { if (editsBuilder_ != null) { return editsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(edits_); } } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public ai.chalk.protos.chalk.lsp.v1.TextEdit.Builder addEditsBuilder() { return getEditsFieldBuilder().addBuilder( ai.chalk.protos.chalk.lsp.v1.TextEdit.getDefaultInstance()); } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public ai.chalk.protos.chalk.lsp.v1.TextEdit.Builder addEditsBuilder( int index) { return getEditsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.lsp.v1.TextEdit.getDefaultInstance()); } /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ public java.util.List<ai.chalk.protos.chalk.lsp.v1.TextEdit.Builder> getEditsBuilderList() { return getEditsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.TextEdit, ai.chalk.protos.chalk.lsp.v1.TextEdit.Builder, ai.chalk.protos.chalk.lsp.v1.TextEditOrBuilder> getEditsFieldBuilder() { if (editsBuilder_ == null) { editsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.TextEdit, ai.chalk.protos.chalk.lsp.v1.TextEdit.Builder, ai.chalk.protos.chalk.lsp.v1.TextEditOrBuilder>( edits_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); edits_ = null; } return editsBuilder_; } @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.lsp.v1.TextDocumentEdit) } // @@protoc_insertion_point(class_scope:chalk.lsp.v1.TextDocumentEdit) private static final ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit(); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<TextDocumentEdit> PARSER = new com.google.protobuf.AbstractParser<TextDocumentEdit>() { @java.lang.Override public TextDocumentEdit 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<TextDocumentEdit> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<TextDocumentEdit> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/TextDocumentEditOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; public interface TextDocumentEditOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.lsp.v1.TextDocumentEdit) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.lsp.v1.TextDocumentIdentifier text_document = 1 [json_name = "textDocument"];</code> * @return Whether the textDocument field is set. */ boolean hasTextDocument(); /** * <code>.chalk.lsp.v1.TextDocumentIdentifier text_document = 1 [json_name = "textDocument"];</code> * @return The textDocument. */ ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier getTextDocument(); /** * <code>.chalk.lsp.v1.TextDocumentIdentifier text_document = 1 [json_name = "textDocument"];</code> */ ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifierOrBuilder getTextDocumentOrBuilder(); /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ java.util.List<ai.chalk.protos.chalk.lsp.v1.TextEdit> getEditsList(); /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ ai.chalk.protos.chalk.lsp.v1.TextEdit getEdits(int index); /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ int getEditsCount(); /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.TextEditOrBuilder> getEditsOrBuilderList(); /** * <code>repeated .chalk.lsp.v1.TextEdit edits = 2 [json_name = "edits"];</code> */ ai.chalk.protos.chalk.lsp.v1.TextEditOrBuilder getEditsOrBuilder( int index); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/TextDocumentIdentifier.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; /** * Protobuf type {@code chalk.lsp.v1.TextDocumentIdentifier} */ public final class TextDocumentIdentifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.lsp.v1.TextDocumentIdentifier) TextDocumentIdentifierOrBuilder { private static final long serialVersionUID = 0L; // Use TextDocumentIdentifier.newBuilder() to construct. private TextDocumentIdentifier(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private TextDocumentIdentifier() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TextDocumentIdentifier(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_TextDocumentIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_TextDocumentIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.class, ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.Builder.class); } public static final int URI_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The uri. */ @java.lang.Override public java.lang.String getUri() { java.lang.Object ref = uri_; 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(); uri_ = s; return s; } } /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The bytes for uri. */ @java.lang.Override public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = 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(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } 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(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } 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.lsp.v1.TextDocumentIdentifier)) { return super.equals(obj); } ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier other = (ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier) obj; if (!getUri() .equals(other.getUri())) 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) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier 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.lsp.v1.TextDocumentIdentifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier 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.lsp.v1.TextDocumentIdentifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier 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.lsp.v1.TextDocumentIdentifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier 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.lsp.v1.TextDocumentIdentifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier 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.lsp.v1.TextDocumentIdentifier 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.lsp.v1.TextDocumentIdentifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.lsp.v1.TextDocumentIdentifier) ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_TextDocumentIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_TextDocumentIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.class, ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.Builder.class); } // Construct using ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; uri_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_TextDocumentIdentifier_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier getDefaultInstanceForType() { return ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier build() { ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier buildPartial() { ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier result = new ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.uri_ = uri_; } } @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.lsp.v1.TextDocumentIdentifier) { return mergeFrom((ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier other) { if (other == ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; 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: { uri_ = 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 uri_ = ""; /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string uri = 1 [json_name = "uri"];</code> * @param value The uri to set. * @return This builder for chaining. */ public Builder setUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>string uri = 1 [json_name = "uri"];</code> * @return This builder for chaining. */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>string uri = 1 [json_name = "uri"];</code> * @param value The bytes for uri to set. * @return This builder for chaining. */ public Builder setUriBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = 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.lsp.v1.TextDocumentIdentifier) } // @@protoc_insertion_point(class_scope:chalk.lsp.v1.TextDocumentIdentifier) private static final ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier(); } public static ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<TextDocumentIdentifier> PARSER = new com.google.protobuf.AbstractParser<TextDocumentIdentifier>() { @java.lang.Override public TextDocumentIdentifier 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<TextDocumentIdentifier> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<TextDocumentIdentifier> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextDocumentIdentifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/TextDocumentIdentifierOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; public interface TextDocumentIdentifierOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.lsp.v1.TextDocumentIdentifier) com.google.protobuf.MessageOrBuilder { /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The uri. */ java.lang.String getUri(); /** * <code>string uri = 1 [json_name = "uri"];</code> * @return The bytes for uri. */ com.google.protobuf.ByteString getUriBytes(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/TextEdit.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; /** * Protobuf type {@code chalk.lsp.v1.TextEdit} */ public final class TextEdit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.lsp.v1.TextEdit) TextEditOrBuilder { private static final long serialVersionUID = 0L; // Use TextEdit.newBuilder() to construct. private TextEdit(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private TextEdit() { newText_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TextEdit(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_TextEdit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_TextEdit_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.TextEdit.class, ai.chalk.protos.chalk.lsp.v1.TextEdit.Builder.class); } private int bitField0_; public static final int RANGE_FIELD_NUMBER = 1; private ai.chalk.protos.chalk.lsp.v1.Range range_; /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return Whether the range field is set. */ @java.lang.Override public boolean hasRange() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return The range. */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.Range getRange() { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder getRangeOrBuilder() { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } public static final int NEW_TEXT_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object newText_ = ""; /** * <code>string new_text = 2 [json_name = "newText"];</code> * @return The newText. */ @java.lang.Override public java.lang.String getNewText() { java.lang.Object ref = newText_; 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(); newText_ = s; return s; } } /** * <code>string new_text = 2 [json_name = "newText"];</code> * @return The bytes for newText. */ @java.lang.Override public com.google.protobuf.ByteString getNewTextBytes() { java.lang.Object ref = newText_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newText_ = 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, getRange()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, newText_); } 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, getRange()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newText_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, newText_); } 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.lsp.v1.TextEdit)) { return super.equals(obj); } ai.chalk.protos.chalk.lsp.v1.TextEdit other = (ai.chalk.protos.chalk.lsp.v1.TextEdit) obj; if (hasRange() != other.hasRange()) return false; if (hasRange()) { if (!getRange() .equals(other.getRange())) return false; } if (!getNewText() .equals(other.getNewText())) 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 (hasRange()) { hash = (37 * hash) + RANGE_FIELD_NUMBER; hash = (53 * hash) + getRange().hashCode(); } hash = (37 * hash) + NEW_TEXT_FIELD_NUMBER; hash = (53 * hash) + getNewText().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.lsp.v1.TextEdit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.TextEdit 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.lsp.v1.TextEdit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.TextEdit 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.lsp.v1.TextEdit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.TextEdit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.lsp.v1.TextEdit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.TextEdit 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.lsp.v1.TextEdit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.TextEdit 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.lsp.v1.TextEdit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.TextEdit 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.lsp.v1.TextEdit 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.lsp.v1.TextEdit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.lsp.v1.TextEdit) ai.chalk.protos.chalk.lsp.v1.TextEditOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_TextEdit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_TextEdit_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.TextEdit.class, ai.chalk.protos.chalk.lsp.v1.TextEdit.Builder.class); } // Construct using ai.chalk.protos.chalk.lsp.v1.TextEdit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRangeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; range_ = null; if (rangeBuilder_ != null) { rangeBuilder_.dispose(); rangeBuilder_ = null; } newText_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_TextEdit_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextEdit getDefaultInstanceForType() { return ai.chalk.protos.chalk.lsp.v1.TextEdit.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextEdit build() { ai.chalk.protos.chalk.lsp.v1.TextEdit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextEdit buildPartial() { ai.chalk.protos.chalk.lsp.v1.TextEdit result = new ai.chalk.protos.chalk.lsp.v1.TextEdit(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.lsp.v1.TextEdit result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.range_ = rangeBuilder_ == null ? range_ : rangeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.newText_ = newText_; } 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.lsp.v1.TextEdit) { return mergeFrom((ai.chalk.protos.chalk.lsp.v1.TextEdit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.lsp.v1.TextEdit other) { if (other == ai.chalk.protos.chalk.lsp.v1.TextEdit.getDefaultInstance()) return this; if (other.hasRange()) { mergeRange(other.getRange()); } if (!other.getNewText().isEmpty()) { newText_ = other.newText_; 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( getRangeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { newText_ = 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.lsp.v1.Range range_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Range, ai.chalk.protos.chalk.lsp.v1.Range.Builder, ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder> rangeBuilder_; /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return Whether the range field is set. */ public boolean hasRange() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return The range. */ public ai.chalk.protos.chalk.lsp.v1.Range getRange() { if (rangeBuilder_ == null) { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } else { return rangeBuilder_.getMessage(); } } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public Builder setRange(ai.chalk.protos.chalk.lsp.v1.Range value) { if (rangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } range_ = value; } else { rangeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public Builder setRange( ai.chalk.protos.chalk.lsp.v1.Range.Builder builderForValue) { if (rangeBuilder_ == null) { range_ = builderForValue.build(); } else { rangeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public Builder mergeRange(ai.chalk.protos.chalk.lsp.v1.Range value) { if (rangeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && range_ != null && range_ != ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance()) { getRangeBuilder().mergeFrom(value); } else { range_ = value; } } else { rangeBuilder_.mergeFrom(value); } if (range_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public Builder clearRange() { bitField0_ = (bitField0_ & ~0x00000001); range_ = null; if (rangeBuilder_ != null) { rangeBuilder_.dispose(); rangeBuilder_ = null; } onChanged(); return this; } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public ai.chalk.protos.chalk.lsp.v1.Range.Builder getRangeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRangeFieldBuilder().getBuilder(); } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ public ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder getRangeOrBuilder() { if (rangeBuilder_ != null) { return rangeBuilder_.getMessageOrBuilder(); } else { return range_ == null ? ai.chalk.protos.chalk.lsp.v1.Range.getDefaultInstance() : range_; } } /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Range, ai.chalk.protos.chalk.lsp.v1.Range.Builder, ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder> getRangeFieldBuilder() { if (rangeBuilder_ == null) { rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.Range, ai.chalk.protos.chalk.lsp.v1.Range.Builder, ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder>( getRange(), getParentForChildren(), isClean()); range_ = null; } return rangeBuilder_; } private java.lang.Object newText_ = ""; /** * <code>string new_text = 2 [json_name = "newText"];</code> * @return The newText. */ public java.lang.String getNewText() { java.lang.Object ref = newText_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); newText_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string new_text = 2 [json_name = "newText"];</code> * @return The bytes for newText. */ public com.google.protobuf.ByteString getNewTextBytes() { java.lang.Object ref = newText_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string new_text = 2 [json_name = "newText"];</code> * @param value The newText to set. * @return This builder for chaining. */ public Builder setNewText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } newText_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>string new_text = 2 [json_name = "newText"];</code> * @return This builder for chaining. */ public Builder clearNewText() { newText_ = getDefaultInstance().getNewText(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string new_text = 2 [json_name = "newText"];</code> * @param value The bytes for newText to set. * @return This builder for chaining. */ public Builder setNewTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); newText_ = 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.lsp.v1.TextEdit) } // @@protoc_insertion_point(class_scope:chalk.lsp.v1.TextEdit) private static final ai.chalk.protos.chalk.lsp.v1.TextEdit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.lsp.v1.TextEdit(); } public static ai.chalk.protos.chalk.lsp.v1.TextEdit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<TextEdit> PARSER = new com.google.protobuf.AbstractParser<TextEdit>() { @java.lang.Override public TextEdit 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<TextEdit> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<TextEdit> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextEdit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/TextEditOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; public interface TextEditOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.lsp.v1.TextEdit) com.google.protobuf.MessageOrBuilder { /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return Whether the range field is set. */ boolean hasRange(); /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> * @return The range. */ ai.chalk.protos.chalk.lsp.v1.Range getRange(); /** * <code>.chalk.lsp.v1.Range range = 1 [json_name = "range"];</code> */ ai.chalk.protos.chalk.lsp.v1.RangeOrBuilder getRangeOrBuilder(); /** * <code>string new_text = 2 [json_name = "newText"];</code> * @return The newText. */ java.lang.String getNewText(); /** * <code>string new_text = 2 [json_name = "newText"];</code> * @return The bytes for newText. */ com.google.protobuf.ByteString getNewTextBytes(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/WorkspaceEdit.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; /** * Protobuf type {@code chalk.lsp.v1.WorkspaceEdit} */ public final class WorkspaceEdit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.lsp.v1.WorkspaceEdit) WorkspaceEditOrBuilder { private static final long serialVersionUID = 0L; // Use WorkspaceEdit.newBuilder() to construct. private WorkspaceEdit(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private WorkspaceEdit() { documentChanges_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WorkspaceEdit(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_WorkspaceEdit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_WorkspaceEdit_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.class, ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.Builder.class); } public static final int DOCUMENT_CHANGES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit> documentChanges_; /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit> getDocumentChangesList() { return documentChanges_; } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.TextDocumentEditOrBuilder> getDocumentChangesOrBuilderList() { return documentChanges_; } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ @java.lang.Override public int getDocumentChangesCount() { return documentChanges_.size(); } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit getDocumentChanges(int index) { return documentChanges_.get(index); } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.TextDocumentEditOrBuilder getDocumentChangesOrBuilder( int index) { return documentChanges_.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 < documentChanges_.size(); i++) { output.writeMessage(1, documentChanges_.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 < documentChanges_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, documentChanges_.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.lsp.v1.WorkspaceEdit)) { return super.equals(obj); } ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit other = (ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit) obj; if (!getDocumentChangesList() .equals(other.getDocumentChangesList())) 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 (getDocumentChangesCount() > 0) { hash = (37 * hash) + DOCUMENT_CHANGES_FIELD_NUMBER; hash = (53 * hash) + getDocumentChangesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit 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.lsp.v1.WorkspaceEdit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit 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.lsp.v1.WorkspaceEdit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit 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.lsp.v1.WorkspaceEdit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit 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.lsp.v1.WorkspaceEdit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit 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.lsp.v1.WorkspaceEdit 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.lsp.v1.WorkspaceEdit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.lsp.v1.WorkspaceEdit) ai.chalk.protos.chalk.lsp.v1.WorkspaceEditOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_WorkspaceEdit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_WorkspaceEdit_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.class, ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.Builder.class); } // Construct using ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (documentChangesBuilder_ == null) { documentChanges_ = java.util.Collections.emptyList(); } else { documentChanges_ = null; documentChangesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.lsp.v1.LspProto.internal_static_chalk_lsp_v1_WorkspaceEdit_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit getDefaultInstanceForType() { return ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit build() { ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit buildPartial() { ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit result = new ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit result) { if (documentChangesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { documentChanges_ = java.util.Collections.unmodifiableList(documentChanges_); bitField0_ = (bitField0_ & ~0x00000001); } result.documentChanges_ = documentChanges_; } else { result.documentChanges_ = documentChangesBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit 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.lsp.v1.WorkspaceEdit) { return mergeFrom((ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit other) { if (other == ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit.getDefaultInstance()) return this; if (documentChangesBuilder_ == null) { if (!other.documentChanges_.isEmpty()) { if (documentChanges_.isEmpty()) { documentChanges_ = other.documentChanges_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDocumentChangesIsMutable(); documentChanges_.addAll(other.documentChanges_); } onChanged(); } } else { if (!other.documentChanges_.isEmpty()) { if (documentChangesBuilder_.isEmpty()) { documentChangesBuilder_.dispose(); documentChangesBuilder_ = null; documentChanges_ = other.documentChanges_; bitField0_ = (bitField0_ & ~0x00000001); documentChangesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDocumentChangesFieldBuilder() : null; } else { documentChangesBuilder_.addAllMessages(other.documentChanges_); } } } 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.lsp.v1.TextDocumentEdit m = input.readMessage( ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.parser(), extensionRegistry); if (documentChangesBuilder_ == null) { ensureDocumentChangesIsMutable(); documentChanges_.add(m); } else { documentChangesBuilder_.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.lsp.v1.TextDocumentEdit> documentChanges_ = java.util.Collections.emptyList(); private void ensureDocumentChangesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { documentChanges_ = new java.util.ArrayList<ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit>(documentChanges_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit, ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.Builder, ai.chalk.protos.chalk.lsp.v1.TextDocumentEditOrBuilder> documentChangesBuilder_; /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public java.util.List<ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit> getDocumentChangesList() { if (documentChangesBuilder_ == null) { return java.util.Collections.unmodifiableList(documentChanges_); } else { return documentChangesBuilder_.getMessageList(); } } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public int getDocumentChangesCount() { if (documentChangesBuilder_ == null) { return documentChanges_.size(); } else { return documentChangesBuilder_.getCount(); } } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit getDocumentChanges(int index) { if (documentChangesBuilder_ == null) { return documentChanges_.get(index); } else { return documentChangesBuilder_.getMessage(index); } } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public Builder setDocumentChanges( int index, ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit value) { if (documentChangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDocumentChangesIsMutable(); documentChanges_.set(index, value); onChanged(); } else { documentChangesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public Builder setDocumentChanges( int index, ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.Builder builderForValue) { if (documentChangesBuilder_ == null) { ensureDocumentChangesIsMutable(); documentChanges_.set(index, builderForValue.build()); onChanged(); } else { documentChangesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public Builder addDocumentChanges(ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit value) { if (documentChangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDocumentChangesIsMutable(); documentChanges_.add(value); onChanged(); } else { documentChangesBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public Builder addDocumentChanges( int index, ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit value) { if (documentChangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDocumentChangesIsMutable(); documentChanges_.add(index, value); onChanged(); } else { documentChangesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public Builder addDocumentChanges( ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.Builder builderForValue) { if (documentChangesBuilder_ == null) { ensureDocumentChangesIsMutable(); documentChanges_.add(builderForValue.build()); onChanged(); } else { documentChangesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public Builder addDocumentChanges( int index, ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.Builder builderForValue) { if (documentChangesBuilder_ == null) { ensureDocumentChangesIsMutable(); documentChanges_.add(index, builderForValue.build()); onChanged(); } else { documentChangesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public Builder addAllDocumentChanges( java.lang.Iterable<? extends ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit> values) { if (documentChangesBuilder_ == null) { ensureDocumentChangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, documentChanges_); onChanged(); } else { documentChangesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public Builder clearDocumentChanges() { if (documentChangesBuilder_ == null) { documentChanges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { documentChangesBuilder_.clear(); } return this; } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public Builder removeDocumentChanges(int index) { if (documentChangesBuilder_ == null) { ensureDocumentChangesIsMutable(); documentChanges_.remove(index); onChanged(); } else { documentChangesBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.Builder getDocumentChangesBuilder( int index) { return getDocumentChangesFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public ai.chalk.protos.chalk.lsp.v1.TextDocumentEditOrBuilder getDocumentChangesOrBuilder( int index) { if (documentChangesBuilder_ == null) { return documentChanges_.get(index); } else { return documentChangesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.TextDocumentEditOrBuilder> getDocumentChangesOrBuilderList() { if (documentChangesBuilder_ != null) { return documentChangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(documentChanges_); } } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.Builder addDocumentChangesBuilder() { return getDocumentChangesFieldBuilder().addBuilder( ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.getDefaultInstance()); } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.Builder addDocumentChangesBuilder( int index) { return getDocumentChangesFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.getDefaultInstance()); } /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ public java.util.List<ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.Builder> getDocumentChangesBuilderList() { return getDocumentChangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit, ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.Builder, ai.chalk.protos.chalk.lsp.v1.TextDocumentEditOrBuilder> getDocumentChangesFieldBuilder() { if (documentChangesBuilder_ == null) { documentChangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit, ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit.Builder, ai.chalk.protos.chalk.lsp.v1.TextDocumentEditOrBuilder>( documentChanges_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); documentChanges_ = null; } return documentChangesBuilder_; } @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.lsp.v1.WorkspaceEdit) } // @@protoc_insertion_point(class_scope:chalk.lsp.v1.WorkspaceEdit) private static final ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit(); } public static ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<WorkspaceEdit> PARSER = new com.google.protobuf.AbstractParser<WorkspaceEdit>() { @java.lang.Override public WorkspaceEdit 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<WorkspaceEdit> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<WorkspaceEdit> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.lsp.v1.WorkspaceEdit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/lsp/v1/WorkspaceEditOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/lsp/v1/lsp.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.lsp.v1; public interface WorkspaceEditOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.lsp.v1.WorkspaceEdit) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ java.util.List<ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit> getDocumentChangesList(); /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ ai.chalk.protos.chalk.lsp.v1.TextDocumentEdit getDocumentChanges(int index); /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ int getDocumentChangesCount(); /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.lsp.v1.TextDocumentEditOrBuilder> getDocumentChangesOrBuilderList(); /** * <code>repeated .chalk.lsp.v1.TextDocumentEdit document_changes = 1 [json_name = "documentChanges"];</code> */ ai.chalk.protos.chalk.lsp.v1.TextDocumentEditOrBuilder getDocumentChangesOrBuilder( int index); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics/v4/Metric.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/metrics/v4/metrics.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.metrics.v4; /** * Protobuf type {@code chalk.metrics.v4.Metric} */ public final class Metric extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.metrics.v4.Metric) MetricOrBuilder { private static final long serialVersionUID = 0L; // Use Metric.newBuilder() to construct. private Metric(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private Metric() { environmentId_ = ""; namespace_ = 0; source_ = ""; name_ = 0; type_ = 0; deploymentId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Metric(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_Metric_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 30: return internalGetAdditionalTags(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_Metric_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.metrics.v4.Metric.class, ai.chalk.protos.chalk.metrics.v4.Metric.Builder.class); } private int bitField0_; private int valueCase_ = 0; @SuppressWarnings("serial") private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SKETCH(10), NUMERIC(11), VALUE_NOT_SET(0); private final int value; private ValueCase(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 ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 10: return SKETCH; case 11: return NUMERIC; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int ID_FIELD_NUMBER = 1; private long id_ = 0L; /** * <pre> * optional because we may not have an id when we're doing the initial publish * </pre> * * <code>optional int64 id = 1 [json_name = "id"];</code> * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * <pre> * optional because we may not have an id when we're doing the initial publish * </pre> * * <code>optional int64 id = 1 [json_name = "id"];</code> * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int ENVIRONMENT_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object environmentId_ = ""; /** * <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; } } /** * <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 NAMESPACE_FIELD_NUMBER = 3; private int namespace_ = 0; /** * <code>.chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];</code> * @return The enum numeric value on the wire for namespace. */ @java.lang.Override public int getNamespaceValue() { return namespace_; } /** * <code>.chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];</code> * @return The namespace. */ @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricNamespace getNamespace() { ai.chalk.protos.chalk.metrics.v4.MetricNamespace result = ai.chalk.protos.chalk.metrics.v4.MetricNamespace.forNumber(namespace_); return result == null ? ai.chalk.protos.chalk.metrics.v4.MetricNamespace.UNRECOGNIZED : result; } public static final int SOURCE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object source_ = ""; /** * <code>string source = 4 [json_name = "source"];</code> * @return The source. */ @java.lang.Override public java.lang.String getSource() { java.lang.Object ref = source_; 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(); source_ = s; return s; } } /** * <code>string source = 4 [json_name = "source"];</code> * @return The bytes for source. */ @java.lang.Override public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 5; private int name_ = 0; /** * <code>.chalk.metrics.v4.MetricName name = 5 [json_name = "name"];</code> * @return The enum numeric value on the wire for name. */ @java.lang.Override public int getNameValue() { return name_; } /** * <code>.chalk.metrics.v4.MetricName name = 5 [json_name = "name"];</code> * @return The name. */ @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricName getName() { ai.chalk.protos.chalk.metrics.v4.MetricName result = ai.chalk.protos.chalk.metrics.v4.MetricName.forNumber(name_); return result == null ? ai.chalk.protos.chalk.metrics.v4.MetricName.UNRECOGNIZED : result; } public static final int TYPE_FIELD_NUMBER = 6; private int type_ = 0; /** * <code>.chalk.metrics.v4.MetricType type = 6 [json_name = "type"];</code> * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * <code>.chalk.metrics.v4.MetricType type = 6 [json_name = "type"];</code> * @return The type. */ @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricType getType() { ai.chalk.protos.chalk.metrics.v4.MetricType result = ai.chalk.protos.chalk.metrics.v4.MetricType.forNumber(type_); return result == null ? ai.chalk.protos.chalk.metrics.v4.MetricType.UNRECOGNIZED : result; } public static final int DEPLOYMENT_ID_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object deploymentId_ = ""; /** * <code>string deployment_id = 7 [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 = 7 [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 SKETCH_FIELD_NUMBER = 10; /** * <code>string sketch = 10 [json_name = "sketch"];</code> * @return Whether the sketch field is set. */ public boolean hasSketch() { return valueCase_ == 10; } /** * <code>string sketch = 10 [json_name = "sketch"];</code> * @return The sketch. */ public java.lang.String getSketch() { java.lang.Object ref = ""; if (valueCase_ == 10) { 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(); if (valueCase_ == 10) { value_ = s; } return s; } } /** * <code>string sketch = 10 [json_name = "sketch"];</code> * @return The bytes for sketch. */ public com.google.protobuf.ByteString getSketchBytes() { java.lang.Object ref = ""; if (valueCase_ == 10) { ref = value_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 10) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NUMERIC_FIELD_NUMBER = 11; /** * <code>double numeric = 11 [json_name = "numeric"];</code> * @return Whether the numeric field is set. */ @java.lang.Override public boolean hasNumeric() { return valueCase_ == 11; } /** * <code>double numeric = 11 [json_name = "numeric"];</code> * @return The numeric. */ @java.lang.Override public double getNumeric() { if (valueCase_ == 11) { return (java.lang.Double) value_; } return 0D; } public static final int STATISTICS_FIELD_NUMBER = 12; private ai.chalk.protos.chalk.metrics.v4.MetricStatistics statistics_; /** * <code>optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];</code> * @return Whether the statistics field is set. */ @java.lang.Override public boolean hasStatistics() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];</code> * @return The statistics. */ @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricStatistics getStatistics() { return statistics_ == null ? ai.chalk.protos.chalk.metrics.v4.MetricStatistics.getDefaultInstance() : statistics_; } /** * <code>optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricStatisticsOrBuilder getStatisticsOrBuilder() { return statistics_ == null ? ai.chalk.protos.chalk.metrics.v4.MetricStatistics.getDefaultInstance() : statistics_; } public static final int OBSERVED_AT_FIELD_NUMBER = 20; private com.google.protobuf.Timestamp observedAt_; /** * <code>optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];</code> * @return Whether the observedAt field is set. */ @java.lang.Override public boolean hasObservedAt() { return ((bitField0_ & 0x00000004) != 0); } /** * <code>optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];</code> * @return The observedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getObservedAt() { return observedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : observedAt_; } /** * <code>optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getObservedAtOrBuilder() { return observedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : observedAt_; } public static final int ADDITIONAL_TAGS_FIELD_NUMBER = 30; private static final class AdditionalTagsDefaultEntryHolder { 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.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_Metric_AdditionalTagsEntry_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> additionalTags_; private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetAdditionalTags() { if (additionalTags_ == null) { return com.google.protobuf.MapField.emptyMapField( AdditionalTagsDefaultEntryHolder.defaultEntry); } return additionalTags_; } public int getAdditionalTagsCount() { return internalGetAdditionalTags().getMap().size(); } /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ @java.lang.Override public boolean containsAdditionalTags( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAdditionalTags().getMap().containsKey(key); } /** * Use {@link #getAdditionalTagsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getAdditionalTags() { return getAdditionalTagsMap(); } /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, java.lang.String> getAdditionalTagsMap() { return internalGetAdditionalTags().getMap(); } /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ @java.lang.Override public /* nullable */ java.lang.String getAdditionalTagsOrDefault( 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 = internalGetAdditionalTags().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ @java.lang.Override public java.lang.String getAdditionalTagsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetAdditionalTags().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 { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environmentId_); } if (namespace_ != ai.chalk.protos.chalk.metrics.v4.MetricNamespace.METRIC_NAMESPACE_UNSPECIFIED.getNumber()) { output.writeEnum(3, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, source_); } if (name_ != ai.chalk.protos.chalk.metrics.v4.MetricName.METRIC_NAME_UNSPECIFIED.getNumber()) { output.writeEnum(5, name_); } if (type_ != ai.chalk.protos.chalk.metrics.v4.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(6, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deploymentId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deploymentId_); } if (valueCase_ == 10) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, value_); } if (valueCase_ == 11) { output.writeDouble( 11, (double)((java.lang.Double) value_)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(12, getStatistics()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(20, getObservedAt()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAdditionalTags(), AdditionalTagsDefaultEntryHolder.defaultEntry, 30); 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 .computeInt64Size(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environmentId_); } if (namespace_ != ai.chalk.protos.chalk.metrics.v4.MetricNamespace.METRIC_NAMESPACE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, source_); } if (name_ != ai.chalk.protos.chalk.metrics.v4.MetricName.METRIC_NAME_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, name_); } if (type_ != ai.chalk.protos.chalk.metrics.v4.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deploymentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, deploymentId_); } if (valueCase_ == 10) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, value_); } if (valueCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize( 11, (double)((java.lang.Double) value_)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getStatistics()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, getObservedAt()); } for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : internalGetAdditionalTags().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> additionalTags__ = AdditionalTagsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, additionalTags__); } 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.metrics.v4.Metric)) { return super.equals(obj); } ai.chalk.protos.chalk.metrics.v4.Metric other = (ai.chalk.protos.chalk.metrics.v4.Metric) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (getId() != other.getId()) return false; } if (!getEnvironmentId() .equals(other.getEnvironmentId())) return false; if (namespace_ != other.namespace_) return false; if (!getSource() .equals(other.getSource())) return false; if (name_ != other.name_) return false; if (type_ != other.type_) return false; if (!getDeploymentId() .equals(other.getDeploymentId())) return false; if (hasStatistics() != other.hasStatistics()) return false; if (hasStatistics()) { if (!getStatistics() .equals(other.getStatistics())) return false; } if (hasObservedAt() != other.hasObservedAt()) return false; if (hasObservedAt()) { if (!getObservedAt() .equals(other.getObservedAt())) return false; } if (!internalGetAdditionalTags().equals( other.internalGetAdditionalTags())) return false; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 10: if (!getSketch() .equals(other.getSketch())) return false; break; case 11: if (java.lang.Double.doubleToLongBits(getNumeric()) != java.lang.Double.doubleToLongBits( other.getNumeric())) 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(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); } hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getEnvironmentId().hashCode(); hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + namespace_; hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + name_; hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + DEPLOYMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getDeploymentId().hashCode(); if (hasStatistics()) { hash = (37 * hash) + STATISTICS_FIELD_NUMBER; hash = (53 * hash) + getStatistics().hashCode(); } if (hasObservedAt()) { hash = (37 * hash) + OBSERVED_AT_FIELD_NUMBER; hash = (53 * hash) + getObservedAt().hashCode(); } if (!internalGetAdditionalTags().getMap().isEmpty()) { hash = (37 * hash) + ADDITIONAL_TAGS_FIELD_NUMBER; hash = (53 * hash) + internalGetAdditionalTags().hashCode(); } switch (valueCase_) { case 10: hash = (37 * hash) + SKETCH_FIELD_NUMBER; hash = (53 * hash) + getSketch().hashCode(); break; case 11: hash = (37 * hash) + NUMERIC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getNumeric())); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.metrics.v4.Metric parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.metrics.v4.Metric 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.metrics.v4.Metric parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.metrics.v4.Metric 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.metrics.v4.Metric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.metrics.v4.Metric parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.metrics.v4.Metric parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.metrics.v4.Metric 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.metrics.v4.Metric parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.metrics.v4.Metric 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.metrics.v4.Metric parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.metrics.v4.Metric 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.metrics.v4.Metric 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.metrics.v4.Metric} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.metrics.v4.Metric) ai.chalk.protos.chalk.metrics.v4.MetricOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_Metric_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 30: return internalGetAdditionalTags(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 30: return internalGetMutableAdditionalTags(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_Metric_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.metrics.v4.Metric.class, ai.chalk.protos.chalk.metrics.v4.Metric.Builder.class); } // Construct using ai.chalk.protos.chalk.metrics.v4.Metric.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStatisticsFieldBuilder(); getObservedAtFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = 0L; environmentId_ = ""; namespace_ = 0; source_ = ""; name_ = 0; type_ = 0; deploymentId_ = ""; statistics_ = null; if (statisticsBuilder_ != null) { statisticsBuilder_.dispose(); statisticsBuilder_ = null; } observedAt_ = null; if (observedAtBuilder_ != null) { observedAtBuilder_.dispose(); observedAtBuilder_ = null; } internalGetMutableAdditionalTags().clear(); valueCase_ = 0; value_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_Metric_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.Metric getDefaultInstanceForType() { return ai.chalk.protos.chalk.metrics.v4.Metric.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.Metric build() { ai.chalk.protos.chalk.metrics.v4.Metric result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.Metric buildPartial() { ai.chalk.protos.chalk.metrics.v4.Metric result = new ai.chalk.protos.chalk.metrics.v4.Metric(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.metrics.v4.Metric result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.environmentId_ = environmentId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.namespace_ = namespace_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.source_ = source_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.deploymentId_ = deploymentId_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.statistics_ = statisticsBuilder_ == null ? statistics_ : statisticsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000400) != 0)) { result.observedAt_ = observedAtBuilder_ == null ? observedAt_ : observedAtBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000800) != 0)) { result.additionalTags_ = internalGetAdditionalTags(); result.additionalTags_.makeImmutable(); } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(ai.chalk.protos.chalk.metrics.v4.Metric result) { result.valueCase_ = valueCase_; result.value_ = this.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.metrics.v4.Metric) { return mergeFrom((ai.chalk.protos.chalk.metrics.v4.Metric)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.metrics.v4.Metric other) { if (other == ai.chalk.protos.chalk.metrics.v4.Metric.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (!other.getEnvironmentId().isEmpty()) { environmentId_ = other.environmentId_; bitField0_ |= 0x00000002; onChanged(); } if (other.namespace_ != 0) { setNamespaceValue(other.getNamespaceValue()); } if (!other.getSource().isEmpty()) { source_ = other.source_; bitField0_ |= 0x00000008; onChanged(); } if (other.name_ != 0) { setNameValue(other.getNameValue()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getDeploymentId().isEmpty()) { deploymentId_ = other.deploymentId_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasStatistics()) { mergeStatistics(other.getStatistics()); } if (other.hasObservedAt()) { mergeObservedAt(other.getObservedAt()); } internalGetMutableAdditionalTags().mergeFrom( other.internalGetAdditionalTags()); bitField0_ |= 0x00000800; switch (other.getValueCase()) { case SKETCH: { valueCase_ = 10; value_ = other.value_; onChanged(); break; } case NUMERIC: { setNumeric(other.getNumeric()); break; } case VALUE_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 8: { id_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { environmentId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { namespace_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { source_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { name_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { type_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { deploymentId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 82: { java.lang.String s = input.readStringRequireUtf8(); valueCase_ = 10; value_ = s; break; } // case 82 case 89: { value_ = input.readDouble(); valueCase_ = 11; break; } // case 89 case 98: { input.readMessage( getStatisticsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 98 case 162: { input.readMessage( getObservedAtFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 162 case 242: { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> additionalTags__ = input.readMessage( AdditionalTagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAdditionalTags().getMutableMap().put( additionalTags__.getKey(), additionalTags__.getValue()); bitField0_ |= 0x00000800; break; } // case 242 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 valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private int bitField0_; private long id_ ; /** * <pre> * optional because we may not have an id when we're doing the initial publish * </pre> * * <code>optional int64 id = 1 [json_name = "id"];</code> * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** * <pre> * optional because we may not have an id when we're doing the initial publish * </pre> * * <code>optional int64 id = 1 [json_name = "id"];</code> * @return The id. */ @java.lang.Override public long getId() { return id_; } /** * <pre> * optional because we may not have an id when we're doing the initial publish * </pre> * * <code>optional int64 id = 1 [json_name = "id"];</code> * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <pre> * optional because we may not have an id when we're doing the initial publish * </pre> * * <code>optional int64 id = 1 [json_name = "id"];</code> * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } private java.lang.Object environmentId_ = ""; /** * <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; } } /** * <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; } } /** * <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; } /** * <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; } /** * <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 int namespace_ = 0; /** * <code>.chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];</code> * @return The enum numeric value on the wire for namespace. */ @java.lang.Override public int getNamespaceValue() { return namespace_; } /** * <code>.chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];</code> * @param value The enum numeric value on the wire for namespace to set. * @return This builder for chaining. */ public Builder setNamespaceValue(int value) { namespace_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>.chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];</code> * @return The namespace. */ @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricNamespace getNamespace() { ai.chalk.protos.chalk.metrics.v4.MetricNamespace result = ai.chalk.protos.chalk.metrics.v4.MetricNamespace.forNumber(namespace_); return result == null ? ai.chalk.protos.chalk.metrics.v4.MetricNamespace.UNRECOGNIZED : result; } /** * <code>.chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];</code> * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace(ai.chalk.protos.chalk.metrics.v4.MetricNamespace value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; namespace_ = value.getNumber(); onChanged(); return this; } /** * <code>.chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];</code> * @return This builder for chaining. */ public Builder clearNamespace() { bitField0_ = (bitField0_ & ~0x00000004); namespace_ = 0; onChanged(); return this; } private java.lang.Object source_ = ""; /** * <code>string source = 4 [json_name = "source"];</code> * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string source = 4 [json_name = "source"];</code> * @return The bytes for source. */ public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string source = 4 [json_name = "source"];</code> * @param value The source to set. * @return This builder for chaining. */ public Builder setSource( java.lang.String value) { if (value == null) { throw new NullPointerException(); } source_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>string source = 4 [json_name = "source"];</code> * @return This builder for chaining. */ public Builder clearSource() { source_ = getDefaultInstance().getSource(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * <code>string source = 4 [json_name = "source"];</code> * @param value The bytes for source to set. * @return This builder for chaining. */ public Builder setSourceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); source_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private int name_ = 0; /** * <code>.chalk.metrics.v4.MetricName name = 5 [json_name = "name"];</code> * @return The enum numeric value on the wire for name. */ @java.lang.Override public int getNameValue() { return name_; } /** * <code>.chalk.metrics.v4.MetricName name = 5 [json_name = "name"];</code> * @param value The enum numeric value on the wire for name to set. * @return This builder for chaining. */ public Builder setNameValue(int value) { name_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>.chalk.metrics.v4.MetricName name = 5 [json_name = "name"];</code> * @return The name. */ @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricName getName() { ai.chalk.protos.chalk.metrics.v4.MetricName result = ai.chalk.protos.chalk.metrics.v4.MetricName.forNumber(name_); return result == null ? ai.chalk.protos.chalk.metrics.v4.MetricName.UNRECOGNIZED : result; } /** * <code>.chalk.metrics.v4.MetricName name = 5 [json_name = "name"];</code> * @param value The name to set. * @return This builder for chaining. */ public Builder setName(ai.chalk.protos.chalk.metrics.v4.MetricName value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; name_ = value.getNumber(); onChanged(); return this; } /** * <code>.chalk.metrics.v4.MetricName name = 5 [json_name = "name"];</code> * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000010); name_ = 0; onChanged(); return this; } private int type_ = 0; /** * <code>.chalk.metrics.v4.MetricType type = 6 [json_name = "type"];</code> * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * <code>.chalk.metrics.v4.MetricType type = 6 [json_name = "type"];</code> * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>.chalk.metrics.v4.MetricType type = 6 [json_name = "type"];</code> * @return The type. */ @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricType getType() { ai.chalk.protos.chalk.metrics.v4.MetricType result = ai.chalk.protos.chalk.metrics.v4.MetricType.forNumber(type_); return result == null ? ai.chalk.protos.chalk.metrics.v4.MetricType.UNRECOGNIZED : result; } /** * <code>.chalk.metrics.v4.MetricType type = 6 [json_name = "type"];</code> * @param value The type to set. * @return This builder for chaining. */ public Builder setType(ai.chalk.protos.chalk.metrics.v4.MetricType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; type_ = value.getNumber(); onChanged(); return this; } /** * <code>.chalk.metrics.v4.MetricType type = 6 [json_name = "type"];</code> * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000020); type_ = 0; onChanged(); return this; } private java.lang.Object deploymentId_ = ""; /** * <code>string deployment_id = 7 [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 = 7 [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 = 7 [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_ |= 0x00000040; onChanged(); return this; } /** * <code>string deployment_id = 7 [json_name = "deploymentId"];</code> * @return This builder for chaining. */ public Builder clearDeploymentId() { deploymentId_ = getDefaultInstance().getDeploymentId(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * <code>string deployment_id = 7 [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_ |= 0x00000040; onChanged(); return this; } /** * <code>string sketch = 10 [json_name = "sketch"];</code> * @return Whether the sketch field is set. */ @java.lang.Override public boolean hasSketch() { return valueCase_ == 10; } /** * <code>string sketch = 10 [json_name = "sketch"];</code> * @return The sketch. */ @java.lang.Override public java.lang.String getSketch() { java.lang.Object ref = ""; if (valueCase_ == 10) { ref = value_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 10) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * <code>string sketch = 10 [json_name = "sketch"];</code> * @return The bytes for sketch. */ @java.lang.Override public com.google.protobuf.ByteString getSketchBytes() { java.lang.Object ref = ""; if (valueCase_ == 10) { ref = value_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 10) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string sketch = 10 [json_name = "sketch"];</code> * @param value The sketch to set. * @return This builder for chaining. */ public Builder setSketch( java.lang.String value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 10; value_ = value; onChanged(); return this; } /** * <code>string sketch = 10 [json_name = "sketch"];</code> * @return This builder for chaining. */ public Builder clearSketch() { if (valueCase_ == 10) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * <code>string sketch = 10 [json_name = "sketch"];</code> * @param value The bytes for sketch to set. * @return This builder for chaining. */ public Builder setSketchBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 10; value_ = value; onChanged(); return this; } /** * <code>double numeric = 11 [json_name = "numeric"];</code> * @return Whether the numeric field is set. */ public boolean hasNumeric() { return valueCase_ == 11; } /** * <code>double numeric = 11 [json_name = "numeric"];</code> * @return The numeric. */ public double getNumeric() { if (valueCase_ == 11) { return (java.lang.Double) value_; } return 0D; } /** * <code>double numeric = 11 [json_name = "numeric"];</code> * @param value The numeric to set. * @return This builder for chaining. */ public Builder setNumeric(double value) { valueCase_ = 11; value_ = value; onChanged(); return this; } /** * <code>double numeric = 11 [json_name = "numeric"];</code> * @return This builder for chaining. */ public Builder clearNumeric() { if (valueCase_ == 11) { valueCase_ = 0; value_ = null; onChanged(); } return this; } private ai.chalk.protos.chalk.metrics.v4.MetricStatistics statistics_; private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.metrics.v4.MetricStatistics, ai.chalk.protos.chalk.metrics.v4.MetricStatistics.Builder, ai.chalk.protos.chalk.metrics.v4.MetricStatisticsOrBuilder> statisticsBuilder_; /** * <code>optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];</code> * @return Whether the statistics field is set. */ public boolean hasStatistics() { return ((bitField0_ & 0x00000200) != 0); } /** * <code>optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];</code> * @return The statistics. */ public ai.chalk.protos.chalk.metrics.v4.MetricStatistics getStatistics() { if (statisticsBuilder_ == null) { return statistics_ == null ? ai.chalk.protos.chalk.metrics.v4.MetricStatistics.getDefaultInstance() : statistics_; } else { return statisticsBuilder_.getMessage(); } } /** * <code>optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];</code> */ public Builder setStatistics(ai.chalk.protos.chalk.metrics.v4.MetricStatistics value) { if (statisticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } statistics_ = value; } else { statisticsBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * <code>optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];</code> */ public Builder setStatistics( ai.chalk.protos.chalk.metrics.v4.MetricStatistics.Builder builderForValue) { if (statisticsBuilder_ == null) { statistics_ = builderForValue.build(); } else { statisticsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * <code>optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];</code> */ public Builder mergeStatistics(ai.chalk.protos.chalk.metrics.v4.MetricStatistics value) { if (statisticsBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && statistics_ != null && statistics_ != ai.chalk.protos.chalk.metrics.v4.MetricStatistics.getDefaultInstance()) { getStatisticsBuilder().mergeFrom(value); } else { statistics_ = value; } } else { statisticsBuilder_.mergeFrom(value); } if (statistics_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** * <code>optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];</code> */ public Builder clearStatistics() { bitField0_ = (bitField0_ & ~0x00000200); statistics_ = null; if (statisticsBuilder_ != null) { statisticsBuilder_.dispose(); statisticsBuilder_ = null; } onChanged(); return this; } /** * <code>optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];</code> */ public ai.chalk.protos.chalk.metrics.v4.MetricStatistics.Builder getStatisticsBuilder() { bitField0_ |= 0x00000200; onChanged(); return getStatisticsFieldBuilder().getBuilder(); } /** * <code>optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];</code> */ public ai.chalk.protos.chalk.metrics.v4.MetricStatisticsOrBuilder getStatisticsOrBuilder() { if (statisticsBuilder_ != null) { return statisticsBuilder_.getMessageOrBuilder(); } else { return statistics_ == null ? ai.chalk.protos.chalk.metrics.v4.MetricStatistics.getDefaultInstance() : statistics_; } } /** * <code>optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.metrics.v4.MetricStatistics, ai.chalk.protos.chalk.metrics.v4.MetricStatistics.Builder, ai.chalk.protos.chalk.metrics.v4.MetricStatisticsOrBuilder> getStatisticsFieldBuilder() { if (statisticsBuilder_ == null) { statisticsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ai.chalk.protos.chalk.metrics.v4.MetricStatistics, ai.chalk.protos.chalk.metrics.v4.MetricStatistics.Builder, ai.chalk.protos.chalk.metrics.v4.MetricStatisticsOrBuilder>( getStatistics(), getParentForChildren(), isClean()); statistics_ = null; } return statisticsBuilder_; } private com.google.protobuf.Timestamp observedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> observedAtBuilder_; /** * <code>optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];</code> * @return Whether the observedAt field is set. */ public boolean hasObservedAt() { return ((bitField0_ & 0x00000400) != 0); } /** * <code>optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];</code> * @return The observedAt. */ public com.google.protobuf.Timestamp getObservedAt() { if (observedAtBuilder_ == null) { return observedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : observedAt_; } else { return observedAtBuilder_.getMessage(); } } /** * <code>optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];</code> */ public Builder setObservedAt(com.google.protobuf.Timestamp value) { if (observedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } observedAt_ = value; } else { observedAtBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * <code>optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];</code> */ public Builder setObservedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (observedAtBuilder_ == null) { observedAt_ = builderForValue.build(); } else { observedAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * <code>optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];</code> */ public Builder mergeObservedAt(com.google.protobuf.Timestamp value) { if (observedAtBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && observedAt_ != null && observedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getObservedAtBuilder().mergeFrom(value); } else { observedAt_ = value; } } else { observedAtBuilder_.mergeFrom(value); } if (observedAt_ != null) { bitField0_ |= 0x00000400; onChanged(); } return this; } /** * <code>optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];</code> */ public Builder clearObservedAt() { bitField0_ = (bitField0_ & ~0x00000400); observedAt_ = null; if (observedAtBuilder_ != null) { observedAtBuilder_.dispose(); observedAtBuilder_ = null; } onChanged(); return this; } /** * <code>optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];</code> */ public com.google.protobuf.Timestamp.Builder getObservedAtBuilder() { bitField0_ |= 0x00000400; onChanged(); return getObservedAtFieldBuilder().getBuilder(); } /** * <code>optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];</code> */ public com.google.protobuf.TimestampOrBuilder getObservedAtOrBuilder() { if (observedAtBuilder_ != null) { return observedAtBuilder_.getMessageOrBuilder(); } else { return observedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : observedAt_; } } /** * <code>optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getObservedAtFieldBuilder() { if (observedAtBuilder_ == null) { observedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getObservedAt(), getParentForChildren(), isClean()); observedAt_ = null; } return observedAtBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> additionalTags_; private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetAdditionalTags() { if (additionalTags_ == null) { return com.google.protobuf.MapField.emptyMapField( AdditionalTagsDefaultEntryHolder.defaultEntry); } return additionalTags_; } private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableAdditionalTags() { if (additionalTags_ == null) { additionalTags_ = com.google.protobuf.MapField.newMapField( AdditionalTagsDefaultEntryHolder.defaultEntry); } if (!additionalTags_.isMutable()) { additionalTags_ = additionalTags_.copy(); } bitField0_ |= 0x00000800; onChanged(); return additionalTags_; } public int getAdditionalTagsCount() { return internalGetAdditionalTags().getMap().size(); } /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ @java.lang.Override public boolean containsAdditionalTags( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAdditionalTags().getMap().containsKey(key); } /** * Use {@link #getAdditionalTagsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getAdditionalTags() { return getAdditionalTagsMap(); } /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ @java.lang.Override public java.util.Map<java.lang.String, java.lang.String> getAdditionalTagsMap() { return internalGetAdditionalTags().getMap(); } /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ @java.lang.Override public /* nullable */ java.lang.String getAdditionalTagsOrDefault( 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 = internalGetAdditionalTags().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ @java.lang.Override public java.lang.String getAdditionalTagsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetAdditionalTags().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAdditionalTags() { bitField0_ = (bitField0_ & ~0x00000800); internalGetMutableAdditionalTags().getMutableMap() .clear(); return this; } /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ public Builder removeAdditionalTags( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAdditionalTags().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMutableAdditionalTags() { bitField0_ |= 0x00000800; return internalGetMutableAdditionalTags().getMutableMap(); } /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ public Builder putAdditionalTags( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAdditionalTags().getMutableMap() .put(key, value); bitField0_ |= 0x00000800; return this; } /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ public Builder putAllAdditionalTags( java.util.Map<java.lang.String, java.lang.String> values) { internalGetMutableAdditionalTags().getMutableMap() .putAll(values); bitField0_ |= 0x00000800; 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.metrics.v4.Metric) } // @@protoc_insertion_point(class_scope:chalk.metrics.v4.Metric) private static final ai.chalk.protos.chalk.metrics.v4.Metric DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.metrics.v4.Metric(); } public static ai.chalk.protos.chalk.metrics.v4.Metric getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<Metric> PARSER = new com.google.protobuf.AbstractParser<Metric>() { @java.lang.Override public Metric 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<Metric> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<Metric> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.Metric getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics/v4/MetricBatch.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/metrics/v4/metrics.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.metrics.v4; /** * Protobuf type {@code chalk.metrics.v4.MetricBatch} */ public final class MetricBatch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.metrics.v4.MetricBatch) MetricBatchOrBuilder { private static final long serialVersionUID = 0L; // Use MetricBatch.newBuilder() to construct. private MetricBatch(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private MetricBatch() { metrics_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MetricBatch(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_MetricBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_MetricBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.metrics.v4.MetricBatch.class, ai.chalk.protos.chalk.metrics.v4.MetricBatch.Builder.class); } public static final int METRICS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List<ai.chalk.protos.chalk.metrics.v4.Metric> metrics_; /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ @java.lang.Override public java.util.List<ai.chalk.protos.chalk.metrics.v4.Metric> getMetricsList() { return metrics_; } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ @java.lang.Override public java.util.List<? extends ai.chalk.protos.chalk.metrics.v4.MetricOrBuilder> getMetricsOrBuilderList() { return metrics_; } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ @java.lang.Override public int getMetricsCount() { return metrics_.size(); } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.Metric getMetrics(int index) { return metrics_.get(index); } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricOrBuilder getMetricsOrBuilder( int index) { return metrics_.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 < metrics_.size(); i++) { output.writeMessage(1, metrics_.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 < metrics_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, metrics_.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.metrics.v4.MetricBatch)) { return super.equals(obj); } ai.chalk.protos.chalk.metrics.v4.MetricBatch other = (ai.chalk.protos.chalk.metrics.v4.MetricBatch) obj; if (!getMetricsList() .equals(other.getMetricsList())) 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 (getMetricsCount() > 0) { hash = (37 * hash) + METRICS_FIELD_NUMBER; hash = (53 * hash) + getMetricsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.metrics.v4.MetricBatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.metrics.v4.MetricBatch 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.metrics.v4.MetricBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.metrics.v4.MetricBatch 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.metrics.v4.MetricBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.metrics.v4.MetricBatch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.metrics.v4.MetricBatch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.metrics.v4.MetricBatch 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.metrics.v4.MetricBatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.metrics.v4.MetricBatch 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.metrics.v4.MetricBatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.metrics.v4.MetricBatch 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.metrics.v4.MetricBatch 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.metrics.v4.MetricBatch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.metrics.v4.MetricBatch) ai.chalk.protos.chalk.metrics.v4.MetricBatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_MetricBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_MetricBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.metrics.v4.MetricBatch.class, ai.chalk.protos.chalk.metrics.v4.MetricBatch.Builder.class); } // Construct using ai.chalk.protos.chalk.metrics.v4.MetricBatch.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); } else { metrics_ = null; metricsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_MetricBatch_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricBatch getDefaultInstanceForType() { return ai.chalk.protos.chalk.metrics.v4.MetricBatch.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricBatch build() { ai.chalk.protos.chalk.metrics.v4.MetricBatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricBatch buildPartial() { ai.chalk.protos.chalk.metrics.v4.MetricBatch result = new ai.chalk.protos.chalk.metrics.v4.MetricBatch(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(ai.chalk.protos.chalk.metrics.v4.MetricBatch result) { if (metricsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); bitField0_ = (bitField0_ & ~0x00000001); } result.metrics_ = metrics_; } else { result.metrics_ = metricsBuilder_.build(); } } private void buildPartial0(ai.chalk.protos.chalk.metrics.v4.MetricBatch 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.metrics.v4.MetricBatch) { return mergeFrom((ai.chalk.protos.chalk.metrics.v4.MetricBatch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.metrics.v4.MetricBatch other) { if (other == ai.chalk.protos.chalk.metrics.v4.MetricBatch.getDefaultInstance()) return this; if (metricsBuilder_ == null) { if (!other.metrics_.isEmpty()) { if (metrics_.isEmpty()) { metrics_ = other.metrics_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMetricsIsMutable(); metrics_.addAll(other.metrics_); } onChanged(); } } else { if (!other.metrics_.isEmpty()) { if (metricsBuilder_.isEmpty()) { metricsBuilder_.dispose(); metricsBuilder_ = null; metrics_ = other.metrics_; bitField0_ = (bitField0_ & ~0x00000001); metricsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetricsFieldBuilder() : null; } else { metricsBuilder_.addAllMessages(other.metrics_); } } } 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.metrics.v4.Metric m = input.readMessage( ai.chalk.protos.chalk.metrics.v4.Metric.parser(), extensionRegistry); if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(m); } else { metricsBuilder_.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.metrics.v4.Metric> metrics_ = java.util.Collections.emptyList(); private void ensureMetricsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { metrics_ = new java.util.ArrayList<ai.chalk.protos.chalk.metrics.v4.Metric>(metrics_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.metrics.v4.Metric, ai.chalk.protos.chalk.metrics.v4.Metric.Builder, ai.chalk.protos.chalk.metrics.v4.MetricOrBuilder> metricsBuilder_; /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public java.util.List<ai.chalk.protos.chalk.metrics.v4.Metric> getMetricsList() { if (metricsBuilder_ == null) { return java.util.Collections.unmodifiableList(metrics_); } else { return metricsBuilder_.getMessageList(); } } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public int getMetricsCount() { if (metricsBuilder_ == null) { return metrics_.size(); } else { return metricsBuilder_.getCount(); } } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public ai.chalk.protos.chalk.metrics.v4.Metric getMetrics(int index) { if (metricsBuilder_ == null) { return metrics_.get(index); } else { return metricsBuilder_.getMessage(index); } } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public Builder setMetrics( int index, ai.chalk.protos.chalk.metrics.v4.Metric value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsIsMutable(); metrics_.set(index, value); onChanged(); } else { metricsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public Builder setMetrics( int index, ai.chalk.protos.chalk.metrics.v4.Metric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.set(index, builderForValue.build()); onChanged(); } else { metricsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public Builder addMetrics(ai.chalk.protos.chalk.metrics.v4.Metric value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsIsMutable(); metrics_.add(value); onChanged(); } else { metricsBuilder_.addMessage(value); } return this; } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public Builder addMetrics( int index, ai.chalk.protos.chalk.metrics.v4.Metric value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsIsMutable(); metrics_.add(index, value); onChanged(); } else { metricsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public Builder addMetrics( ai.chalk.protos.chalk.metrics.v4.Metric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(builderForValue.build()); onChanged(); } else { metricsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public Builder addMetrics( int index, ai.chalk.protos.chalk.metrics.v4.Metric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(index, builderForValue.build()); onChanged(); } else { metricsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public Builder addAllMetrics( java.lang.Iterable<? extends ai.chalk.protos.chalk.metrics.v4.Metric> values) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, metrics_); onChanged(); } else { metricsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public Builder clearMetrics() { if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { metricsBuilder_.clear(); } return this; } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public Builder removeMetrics(int index) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.remove(index); onChanged(); } else { metricsBuilder_.remove(index); } return this; } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public ai.chalk.protos.chalk.metrics.v4.Metric.Builder getMetricsBuilder( int index) { return getMetricsFieldBuilder().getBuilder(index); } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public ai.chalk.protos.chalk.metrics.v4.MetricOrBuilder getMetricsOrBuilder( int index) { if (metricsBuilder_ == null) { return metrics_.get(index); } else { return metricsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public java.util.List<? extends ai.chalk.protos.chalk.metrics.v4.MetricOrBuilder> getMetricsOrBuilderList() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(metrics_); } } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public ai.chalk.protos.chalk.metrics.v4.Metric.Builder addMetricsBuilder() { return getMetricsFieldBuilder().addBuilder( ai.chalk.protos.chalk.metrics.v4.Metric.getDefaultInstance()); } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public ai.chalk.protos.chalk.metrics.v4.Metric.Builder addMetricsBuilder( int index) { return getMetricsFieldBuilder().addBuilder( index, ai.chalk.protos.chalk.metrics.v4.Metric.getDefaultInstance()); } /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ public java.util.List<ai.chalk.protos.chalk.metrics.v4.Metric.Builder> getMetricsBuilderList() { return getMetricsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.metrics.v4.Metric, ai.chalk.protos.chalk.metrics.v4.Metric.Builder, ai.chalk.protos.chalk.metrics.v4.MetricOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ai.chalk.protos.chalk.metrics.v4.Metric, ai.chalk.protos.chalk.metrics.v4.Metric.Builder, ai.chalk.protos.chalk.metrics.v4.MetricOrBuilder>( metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; } @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.metrics.v4.MetricBatch) } // @@protoc_insertion_point(class_scope:chalk.metrics.v4.MetricBatch) private static final ai.chalk.protos.chalk.metrics.v4.MetricBatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.metrics.v4.MetricBatch(); } public static ai.chalk.protos.chalk.metrics.v4.MetricBatch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<MetricBatch> PARSER = new com.google.protobuf.AbstractParser<MetricBatch>() { @java.lang.Override public MetricBatch 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<MetricBatch> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<MetricBatch> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics/v4/MetricBatchOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/metrics/v4/metrics.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.metrics.v4; public interface MetricBatchOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.metrics.v4.MetricBatch) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ java.util.List<ai.chalk.protos.chalk.metrics.v4.Metric> getMetricsList(); /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ ai.chalk.protos.chalk.metrics.v4.Metric getMetrics(int index); /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ int getMetricsCount(); /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ java.util.List<? extends ai.chalk.protos.chalk.metrics.v4.MetricOrBuilder> getMetricsOrBuilderList(); /** * <code>repeated .chalk.metrics.v4.Metric metrics = 1 [json_name = "metrics"];</code> */ ai.chalk.protos.chalk.metrics.v4.MetricOrBuilder getMetricsOrBuilder( int index); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics/v4/MetricName.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/metrics/v4/metrics.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.metrics.v4; /** * Protobuf enum {@code chalk.metrics.v4.MetricName} */ public enum MetricName implements com.google.protobuf.ProtocolMessageEnum { /** * <code>METRIC_NAME_UNSPECIFIED = 0;</code> */ METRIC_NAME_UNSPECIFIED(0), /** * <code>METRIC_NAME_DEFAULT_VALUES_USED = 1;</code> */ METRIC_NAME_DEFAULT_VALUES_USED(1), /** * <code>METRIC_NAME_GIVENS_VALUES_USED = 2;</code> */ METRIC_NAME_GIVENS_VALUES_USED(2), /** * <code>METRIC_NAME_OFFLINE_STORE_VALUES_USED = 3;</code> */ METRIC_NAME_OFFLINE_STORE_VALUES_USED(3), /** * <code>METRIC_NAME_ONLINE_STORE_VALUES_USED = 4;</code> */ METRIC_NAME_ONLINE_STORE_VALUES_USED(4), /** * <code>METRIC_NAME_RESOLVER_VALUES_USED = 5;</code> */ METRIC_NAME_RESOLVER_VALUES_USED(5), /** * <code>METRIC_NAME_NULL_COUNT = 6;</code> */ METRIC_NAME_NULL_COUNT(6), /** * <code>METRIC_NAME_NON_NULL_COUNT = 7;</code> */ METRIC_NAME_NON_NULL_COUNT(7), /** * <code>METRIC_NAME_MISSING_COUNT = 8;</code> */ METRIC_NAME_MISSING_COUNT(8), /** * <code>METRIC_NAME_ZERO_COUNT = 9;</code> */ METRIC_NAME_ZERO_COUNT(9), /** * <code>METRIC_NAME_VALUES_DISTRIBUTION = 10;</code> */ METRIC_NAME_VALUES_DISTRIBUTION(10), /** * <code>METRIC_NAME_RESOLVER_LATENCY = 11;</code> */ METRIC_NAME_RESOLVER_LATENCY(11), /** * <code>METRIC_NAME_BYTES_DOWNLOADED = 12;</code> */ METRIC_NAME_BYTES_DOWNLOADED(12), /** * <code>METRIC_NAME_NUM_ROWS = 13;</code> */ METRIC_NAME_NUM_ROWS(13), /** * <code>METRIC_NAME_NUM_FEATURES = 14;</code> */ METRIC_NAME_NUM_FEATURES(14), UNRECOGNIZED(-1), ; /** * <code>METRIC_NAME_UNSPECIFIED = 0;</code> */ public static final int METRIC_NAME_UNSPECIFIED_VALUE = 0; /** * <code>METRIC_NAME_DEFAULT_VALUES_USED = 1;</code> */ public static final int METRIC_NAME_DEFAULT_VALUES_USED_VALUE = 1; /** * <code>METRIC_NAME_GIVENS_VALUES_USED = 2;</code> */ public static final int METRIC_NAME_GIVENS_VALUES_USED_VALUE = 2; /** * <code>METRIC_NAME_OFFLINE_STORE_VALUES_USED = 3;</code> */ public static final int METRIC_NAME_OFFLINE_STORE_VALUES_USED_VALUE = 3; /** * <code>METRIC_NAME_ONLINE_STORE_VALUES_USED = 4;</code> */ public static final int METRIC_NAME_ONLINE_STORE_VALUES_USED_VALUE = 4; /** * <code>METRIC_NAME_RESOLVER_VALUES_USED = 5;</code> */ public static final int METRIC_NAME_RESOLVER_VALUES_USED_VALUE = 5; /** * <code>METRIC_NAME_NULL_COUNT = 6;</code> */ public static final int METRIC_NAME_NULL_COUNT_VALUE = 6; /** * <code>METRIC_NAME_NON_NULL_COUNT = 7;</code> */ public static final int METRIC_NAME_NON_NULL_COUNT_VALUE = 7; /** * <code>METRIC_NAME_MISSING_COUNT = 8;</code> */ public static final int METRIC_NAME_MISSING_COUNT_VALUE = 8; /** * <code>METRIC_NAME_ZERO_COUNT = 9;</code> */ public static final int METRIC_NAME_ZERO_COUNT_VALUE = 9; /** * <code>METRIC_NAME_VALUES_DISTRIBUTION = 10;</code> */ public static final int METRIC_NAME_VALUES_DISTRIBUTION_VALUE = 10; /** * <code>METRIC_NAME_RESOLVER_LATENCY = 11;</code> */ public static final int METRIC_NAME_RESOLVER_LATENCY_VALUE = 11; /** * <code>METRIC_NAME_BYTES_DOWNLOADED = 12;</code> */ public static final int METRIC_NAME_BYTES_DOWNLOADED_VALUE = 12; /** * <code>METRIC_NAME_NUM_ROWS = 13;</code> */ public static final int METRIC_NAME_NUM_ROWS_VALUE = 13; /** * <code>METRIC_NAME_NUM_FEATURES = 14;</code> */ public static final int METRIC_NAME_NUM_FEATURES_VALUE = 14; 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 MetricName 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 MetricName forNumber(int value) { switch (value) { case 0: return METRIC_NAME_UNSPECIFIED; case 1: return METRIC_NAME_DEFAULT_VALUES_USED; case 2: return METRIC_NAME_GIVENS_VALUES_USED; case 3: return METRIC_NAME_OFFLINE_STORE_VALUES_USED; case 4: return METRIC_NAME_ONLINE_STORE_VALUES_USED; case 5: return METRIC_NAME_RESOLVER_VALUES_USED; case 6: return METRIC_NAME_NULL_COUNT; case 7: return METRIC_NAME_NON_NULL_COUNT; case 8: return METRIC_NAME_MISSING_COUNT; case 9: return METRIC_NAME_ZERO_COUNT; case 10: return METRIC_NAME_VALUES_DISTRIBUTION; case 11: return METRIC_NAME_RESOLVER_LATENCY; case 12: return METRIC_NAME_BYTES_DOWNLOADED; case 13: return METRIC_NAME_NUM_ROWS; case 14: return METRIC_NAME_NUM_FEATURES; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<MetricName> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< MetricName> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<MetricName>() { public MetricName findValueByNumber(int number) { return MetricName.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.metrics.v4.MetricsProto.getDescriptor().getEnumTypes().get(2); } private static final MetricName[] VALUES = values(); public static MetricName 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 MetricName(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:chalk.metrics.v4.MetricName) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics/v4/MetricNamespace.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/metrics/v4/metrics.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.metrics.v4; /** * Protobuf enum {@code chalk.metrics.v4.MetricNamespace} */ public enum MetricNamespace implements com.google.protobuf.ProtocolMessageEnum { /** * <code>METRIC_NAMESPACE_UNSPECIFIED = 0;</code> */ METRIC_NAMESPACE_UNSPECIFIED(0), /** * <code>METRIC_NAMESPACE_FEATURE = 1;</code> */ METRIC_NAMESPACE_FEATURE(1), /** * <code>METRIC_NAMESPACE_SYSTEM = 2;</code> */ METRIC_NAMESPACE_SYSTEM(2), UNRECOGNIZED(-1), ; /** * <code>METRIC_NAMESPACE_UNSPECIFIED = 0;</code> */ public static final int METRIC_NAMESPACE_UNSPECIFIED_VALUE = 0; /** * <code>METRIC_NAMESPACE_FEATURE = 1;</code> */ public static final int METRIC_NAMESPACE_FEATURE_VALUE = 1; /** * <code>METRIC_NAMESPACE_SYSTEM = 2;</code> */ public static final int METRIC_NAMESPACE_SYSTEM_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MetricNamespace 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 MetricNamespace forNumber(int value) { switch (value) { case 0: return METRIC_NAMESPACE_UNSPECIFIED; case 1: return METRIC_NAMESPACE_FEATURE; case 2: return METRIC_NAMESPACE_SYSTEM; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<MetricNamespace> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< MetricNamespace> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<MetricNamespace>() { public MetricNamespace findValueByNumber(int number) { return MetricNamespace.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.metrics.v4.MetricsProto.getDescriptor().getEnumTypes().get(1); } private static final MetricNamespace[] VALUES = values(); public static MetricNamespace 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 MetricNamespace(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:chalk.metrics.v4.MetricNamespace) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics/v4/MetricOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/metrics/v4/metrics.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.metrics.v4; public interface MetricOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.metrics.v4.Metric) com.google.protobuf.MessageOrBuilder { /** * <pre> * optional because we may not have an id when we're doing the initial publish * </pre> * * <code>optional int64 id = 1 [json_name = "id"];</code> * @return Whether the id field is set. */ boolean hasId(); /** * <pre> * optional because we may not have an id when we're doing the initial publish * </pre> * * <code>optional int64 id = 1 [json_name = "id"];</code> * @return The id. */ long getId(); /** * <code>string environment_id = 2 [json_name = "environmentId"];</code> * @return The environmentId. */ java.lang.String getEnvironmentId(); /** * <code>string environment_id = 2 [json_name = "environmentId"];</code> * @return The bytes for environmentId. */ com.google.protobuf.ByteString getEnvironmentIdBytes(); /** * <code>.chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];</code> * @return The enum numeric value on the wire for namespace. */ int getNamespaceValue(); /** * <code>.chalk.metrics.v4.MetricNamespace namespace = 3 [json_name = "namespace"];</code> * @return The namespace. */ ai.chalk.protos.chalk.metrics.v4.MetricNamespace getNamespace(); /** * <code>string source = 4 [json_name = "source"];</code> * @return The source. */ java.lang.String getSource(); /** * <code>string source = 4 [json_name = "source"];</code> * @return The bytes for source. */ com.google.protobuf.ByteString getSourceBytes(); /** * <code>.chalk.metrics.v4.MetricName name = 5 [json_name = "name"];</code> * @return The enum numeric value on the wire for name. */ int getNameValue(); /** * <code>.chalk.metrics.v4.MetricName name = 5 [json_name = "name"];</code> * @return The name. */ ai.chalk.protos.chalk.metrics.v4.MetricName getName(); /** * <code>.chalk.metrics.v4.MetricType type = 6 [json_name = "type"];</code> * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * <code>.chalk.metrics.v4.MetricType type = 6 [json_name = "type"];</code> * @return The type. */ ai.chalk.protos.chalk.metrics.v4.MetricType getType(); /** * <code>string deployment_id = 7 [json_name = "deploymentId"];</code> * @return The deploymentId. */ java.lang.String getDeploymentId(); /** * <code>string deployment_id = 7 [json_name = "deploymentId"];</code> * @return The bytes for deploymentId. */ com.google.protobuf.ByteString getDeploymentIdBytes(); /** * <code>string sketch = 10 [json_name = "sketch"];</code> * @return Whether the sketch field is set. */ boolean hasSketch(); /** * <code>string sketch = 10 [json_name = "sketch"];</code> * @return The sketch. */ java.lang.String getSketch(); /** * <code>string sketch = 10 [json_name = "sketch"];</code> * @return The bytes for sketch. */ com.google.protobuf.ByteString getSketchBytes(); /** * <code>double numeric = 11 [json_name = "numeric"];</code> * @return Whether the numeric field is set. */ boolean hasNumeric(); /** * <code>double numeric = 11 [json_name = "numeric"];</code> * @return The numeric. */ double getNumeric(); /** * <code>optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];</code> * @return Whether the statistics field is set. */ boolean hasStatistics(); /** * <code>optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];</code> * @return The statistics. */ ai.chalk.protos.chalk.metrics.v4.MetricStatistics getStatistics(); /** * <code>optional .chalk.metrics.v4.MetricStatistics statistics = 12 [json_name = "statistics"];</code> */ ai.chalk.protos.chalk.metrics.v4.MetricStatisticsOrBuilder getStatisticsOrBuilder(); /** * <code>optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];</code> * @return Whether the observedAt field is set. */ boolean hasObservedAt(); /** * <code>optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];</code> * @return The observedAt. */ com.google.protobuf.Timestamp getObservedAt(); /** * <code>optional .google.protobuf.Timestamp observed_at = 20 [json_name = "observedAt"];</code> */ com.google.protobuf.TimestampOrBuilder getObservedAtOrBuilder(); /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ int getAdditionalTagsCount(); /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ boolean containsAdditionalTags( java.lang.String key); /** * Use {@link #getAdditionalTagsMap()} instead. */ @java.lang.Deprecated java.util.Map<java.lang.String, java.lang.String> getAdditionalTags(); /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ java.util.Map<java.lang.String, java.lang.String> getAdditionalTagsMap(); /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ /* nullable */ java.lang.String getAdditionalTagsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * <code>map&lt;string, string&gt; additional_tags = 30 [json_name = "additionalTags"];</code> */ java.lang.String getAdditionalTagsOrThrow( java.lang.String key); ai.chalk.protos.chalk.metrics.v4.Metric.ValueCase getValueCase(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics/v4/MetricStatistics.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/metrics/v4/metrics.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.metrics.v4; /** * Protobuf type {@code chalk.metrics.v4.MetricStatistics} */ public final class MetricStatistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.metrics.v4.MetricStatistics) MetricStatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use MetricStatistics.newBuilder() to construct. private MetricStatistics(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private MetricStatistics() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MetricStatistics(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_MetricStatistics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_MetricStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.metrics.v4.MetricStatistics.class, ai.chalk.protos.chalk.metrics.v4.MetricStatistics.Builder.class); } private int bitField0_; public static final int MIN_FIELD_NUMBER = 1; private double min_ = 0D; /** * <code>optional double min = 1 [json_name = "min"];</code> * @return Whether the min field is set. */ @java.lang.Override public boolean hasMin() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>optional double min = 1 [json_name = "min"];</code> * @return The min. */ @java.lang.Override public double getMin() { return min_; } public static final int MAX_FIELD_NUMBER = 2; private double max_ = 0D; /** * <code>optional double max = 2 [json_name = "max"];</code> * @return Whether the max field is set. */ @java.lang.Override public boolean hasMax() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>optional double max = 2 [json_name = "max"];</code> * @return The max. */ @java.lang.Override public double getMax() { return max_; } public static final int COUNT_FIELD_NUMBER = 3; private long count_ = 0L; /** * <code>optional uint64 count = 3 [json_name = "count"];</code> * @return Whether the count field is set. */ @java.lang.Override public boolean hasCount() { return ((bitField0_ & 0x00000004) != 0); } /** * <code>optional uint64 count = 3 [json_name = "count"];</code> * @return The count. */ @java.lang.Override public long getCount() { return count_; } public static final int NULL_COUNT_FIELD_NUMBER = 4; private long nullCount_ = 0L; /** * <code>optional uint64 null_count = 4 [json_name = "nullCount"];</code> * @return Whether the nullCount field is set. */ @java.lang.Override public boolean hasNullCount() { return ((bitField0_ & 0x00000008) != 0); } /** * <code>optional uint64 null_count = 4 [json_name = "nullCount"];</code> * @return The nullCount. */ @java.lang.Override public long getNullCount() { return nullCount_; } public static final int MEAN_FIELD_NUMBER = 5; private double mean_ = 0D; /** * <code>optional double mean = 5 [json_name = "mean"];</code> * @return Whether the mean field is set. */ @java.lang.Override public boolean hasMean() { return ((bitField0_ & 0x00000010) != 0); } /** * <code>optional double mean = 5 [json_name = "mean"];</code> * @return The mean. */ @java.lang.Override public double getMean() { return mean_; } public static final int VARIANCE_FIELD_NUMBER = 6; private double variance_ = 0D; /** * <code>optional double variance = 6 [json_name = "variance"];</code> * @return Whether the variance field is set. */ @java.lang.Override public boolean hasVariance() { return ((bitField0_ & 0x00000020) != 0); } /** * <code>optional double variance = 6 [json_name = "variance"];</code> * @return The variance. */ @java.lang.Override public double getVariance() { return variance_; } 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.writeDouble(1, min_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeDouble(2, max_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt64(3, count_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt64(4, nullCount_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeDouble(5, mean_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeDouble(6, variance_); } 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 .computeDoubleSize(1, min_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, max_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, count_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, nullCount_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, mean_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, variance_); } 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.metrics.v4.MetricStatistics)) { return super.equals(obj); } ai.chalk.protos.chalk.metrics.v4.MetricStatistics other = (ai.chalk.protos.chalk.metrics.v4.MetricStatistics) obj; if (hasMin() != other.hasMin()) return false; if (hasMin()) { if (java.lang.Double.doubleToLongBits(getMin()) != java.lang.Double.doubleToLongBits( other.getMin())) return false; } if (hasMax() != other.hasMax()) return false; if (hasMax()) { if (java.lang.Double.doubleToLongBits(getMax()) != java.lang.Double.doubleToLongBits( other.getMax())) return false; } if (hasCount() != other.hasCount()) return false; if (hasCount()) { if (getCount() != other.getCount()) return false; } if (hasNullCount() != other.hasNullCount()) return false; if (hasNullCount()) { if (getNullCount() != other.getNullCount()) return false; } if (hasMean() != other.hasMean()) return false; if (hasMean()) { if (java.lang.Double.doubleToLongBits(getMean()) != java.lang.Double.doubleToLongBits( other.getMean())) return false; } if (hasVariance() != other.hasVariance()) return false; if (hasVariance()) { if (java.lang.Double.doubleToLongBits(getVariance()) != java.lang.Double.doubleToLongBits( other.getVariance())) 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 (hasMin()) { hash = (37 * hash) + MIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMin())); } if (hasMax()) { hash = (37 * hash) + MAX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMax())); } if (hasCount()) { hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCount()); } if (hasNullCount()) { hash = (37 * hash) + NULL_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNullCount()); } if (hasMean()) { hash = (37 * hash) + MEAN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMean())); } if (hasVariance()) { hash = (37 * hash) + VARIANCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getVariance())); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.metrics.v4.MetricStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.metrics.v4.MetricStatistics 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.metrics.v4.MetricStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.metrics.v4.MetricStatistics 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.metrics.v4.MetricStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.metrics.v4.MetricStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ai.chalk.protos.chalk.metrics.v4.MetricStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.metrics.v4.MetricStatistics 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.metrics.v4.MetricStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.metrics.v4.MetricStatistics 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.metrics.v4.MetricStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ai.chalk.protos.chalk.metrics.v4.MetricStatistics 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.metrics.v4.MetricStatistics 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.metrics.v4.MetricStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.metrics.v4.MetricStatistics) ai.chalk.protos.chalk.metrics.v4.MetricStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_MetricStatistics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_MetricStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.metrics.v4.MetricStatistics.class, ai.chalk.protos.chalk.metrics.v4.MetricStatistics.Builder.class); } // Construct using ai.chalk.protos.chalk.metrics.v4.MetricStatistics.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; min_ = 0D; max_ = 0D; count_ = 0L; nullCount_ = 0L; mean_ = 0D; variance_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.metrics.v4.MetricsProto.internal_static_chalk_metrics_v4_MetricStatistics_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricStatistics getDefaultInstanceForType() { return ai.chalk.protos.chalk.metrics.v4.MetricStatistics.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricStatistics build() { ai.chalk.protos.chalk.metrics.v4.MetricStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricStatistics buildPartial() { ai.chalk.protos.chalk.metrics.v4.MetricStatistics result = new ai.chalk.protos.chalk.metrics.v4.MetricStatistics(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.metrics.v4.MetricStatistics result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.min_ = min_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.max_ = max_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.count_ = count_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.nullCount_ = nullCount_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.mean_ = mean_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.variance_ = variance_; 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.metrics.v4.MetricStatistics) { return mergeFrom((ai.chalk.protos.chalk.metrics.v4.MetricStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.metrics.v4.MetricStatistics other) { if (other == ai.chalk.protos.chalk.metrics.v4.MetricStatistics.getDefaultInstance()) return this; if (other.hasMin()) { setMin(other.getMin()); } if (other.hasMax()) { setMax(other.getMax()); } if (other.hasCount()) { setCount(other.getCount()); } if (other.hasNullCount()) { setNullCount(other.getNullCount()); } if (other.hasMean()) { setMean(other.getMean()); } if (other.hasVariance()) { setVariance(other.getVariance()); } 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 9: { min_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 9 case 17: { max_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 17 case 24: { count_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { nullCount_ = input.readUInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 41: { mean_ = input.readDouble(); bitField0_ |= 0x00000010; break; } // case 41 case 49: { variance_ = input.readDouble(); bitField0_ |= 0x00000020; break; } // case 49 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 double min_ ; /** * <code>optional double min = 1 [json_name = "min"];</code> * @return Whether the min field is set. */ @java.lang.Override public boolean hasMin() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>optional double min = 1 [json_name = "min"];</code> * @return The min. */ @java.lang.Override public double getMin() { return min_; } /** * <code>optional double min = 1 [json_name = "min"];</code> * @param value The min to set. * @return This builder for chaining. */ public Builder setMin(double value) { min_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * <code>optional double min = 1 [json_name = "min"];</code> * @return This builder for chaining. */ public Builder clearMin() { bitField0_ = (bitField0_ & ~0x00000001); min_ = 0D; onChanged(); return this; } private double max_ ; /** * <code>optional double max = 2 [json_name = "max"];</code> * @return Whether the max field is set. */ @java.lang.Override public boolean hasMax() { return ((bitField0_ & 0x00000002) != 0); } /** * <code>optional double max = 2 [json_name = "max"];</code> * @return The max. */ @java.lang.Override public double getMax() { return max_; } /** * <code>optional double max = 2 [json_name = "max"];</code> * @param value The max to set. * @return This builder for chaining. */ public Builder setMax(double value) { max_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * <code>optional double max = 2 [json_name = "max"];</code> * @return This builder for chaining. */ public Builder clearMax() { bitField0_ = (bitField0_ & ~0x00000002); max_ = 0D; onChanged(); return this; } private long count_ ; /** * <code>optional uint64 count = 3 [json_name = "count"];</code> * @return Whether the count field is set. */ @java.lang.Override public boolean hasCount() { return ((bitField0_ & 0x00000004) != 0); } /** * <code>optional uint64 count = 3 [json_name = "count"];</code> * @return The count. */ @java.lang.Override public long getCount() { return count_; } /** * <code>optional uint64 count = 3 [json_name = "count"];</code> * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { count_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * <code>optional uint64 count = 3 [json_name = "count"];</code> * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000004); count_ = 0L; onChanged(); return this; } private long nullCount_ ; /** * <code>optional uint64 null_count = 4 [json_name = "nullCount"];</code> * @return Whether the nullCount field is set. */ @java.lang.Override public boolean hasNullCount() { return ((bitField0_ & 0x00000008) != 0); } /** * <code>optional uint64 null_count = 4 [json_name = "nullCount"];</code> * @return The nullCount. */ @java.lang.Override public long getNullCount() { return nullCount_; } /** * <code>optional uint64 null_count = 4 [json_name = "nullCount"];</code> * @param value The nullCount to set. * @return This builder for chaining. */ public Builder setNullCount(long value) { nullCount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>optional uint64 null_count = 4 [json_name = "nullCount"];</code> * @return This builder for chaining. */ public Builder clearNullCount() { bitField0_ = (bitField0_ & ~0x00000008); nullCount_ = 0L; onChanged(); return this; } private double mean_ ; /** * <code>optional double mean = 5 [json_name = "mean"];</code> * @return Whether the mean field is set. */ @java.lang.Override public boolean hasMean() { return ((bitField0_ & 0x00000010) != 0); } /** * <code>optional double mean = 5 [json_name = "mean"];</code> * @return The mean. */ @java.lang.Override public double getMean() { return mean_; } /** * <code>optional double mean = 5 [json_name = "mean"];</code> * @param value The mean to set. * @return This builder for chaining. */ public Builder setMean(double value) { mean_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * <code>optional double mean = 5 [json_name = "mean"];</code> * @return This builder for chaining. */ public Builder clearMean() { bitField0_ = (bitField0_ & ~0x00000010); mean_ = 0D; onChanged(); return this; } private double variance_ ; /** * <code>optional double variance = 6 [json_name = "variance"];</code> * @return Whether the variance field is set. */ @java.lang.Override public boolean hasVariance() { return ((bitField0_ & 0x00000020) != 0); } /** * <code>optional double variance = 6 [json_name = "variance"];</code> * @return The variance. */ @java.lang.Override public double getVariance() { return variance_; } /** * <code>optional double variance = 6 [json_name = "variance"];</code> * @param value The variance to set. * @return This builder for chaining. */ public Builder setVariance(double value) { variance_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>optional double variance = 6 [json_name = "variance"];</code> * @return This builder for chaining. */ public Builder clearVariance() { bitField0_ = (bitField0_ & ~0x00000020); variance_ = 0D; 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.metrics.v4.MetricStatistics) } // @@protoc_insertion_point(class_scope:chalk.metrics.v4.MetricStatistics) private static final ai.chalk.protos.chalk.metrics.v4.MetricStatistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.metrics.v4.MetricStatistics(); } public static ai.chalk.protos.chalk.metrics.v4.MetricStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<MetricStatistics> PARSER = new com.google.protobuf.AbstractParser<MetricStatistics>() { @java.lang.Override public MetricStatistics 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<MetricStatistics> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<MetricStatistics> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.metrics.v4.MetricStatistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics/v4/MetricStatisticsOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/metrics/v4/metrics.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.metrics.v4; public interface MetricStatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.metrics.v4.MetricStatistics) com.google.protobuf.MessageOrBuilder { /** * <code>optional double min = 1 [json_name = "min"];</code> * @return Whether the min field is set. */ boolean hasMin(); /** * <code>optional double min = 1 [json_name = "min"];</code> * @return The min. */ double getMin(); /** * <code>optional double max = 2 [json_name = "max"];</code> * @return Whether the max field is set. */ boolean hasMax(); /** * <code>optional double max = 2 [json_name = "max"];</code> * @return The max. */ double getMax(); /** * <code>optional uint64 count = 3 [json_name = "count"];</code> * @return Whether the count field is set. */ boolean hasCount(); /** * <code>optional uint64 count = 3 [json_name = "count"];</code> * @return The count. */ long getCount(); /** * <code>optional uint64 null_count = 4 [json_name = "nullCount"];</code> * @return Whether the nullCount field is set. */ boolean hasNullCount(); /** * <code>optional uint64 null_count = 4 [json_name = "nullCount"];</code> * @return The nullCount. */ long getNullCount(); /** * <code>optional double mean = 5 [json_name = "mean"];</code> * @return Whether the mean field is set. */ boolean hasMean(); /** * <code>optional double mean = 5 [json_name = "mean"];</code> * @return The mean. */ double getMean(); /** * <code>optional double variance = 6 [json_name = "variance"];</code> * @return Whether the variance field is set. */ boolean hasVariance(); /** * <code>optional double variance = 6 [json_name = "variance"];</code> * @return The variance. */ double getVariance(); }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics/v4/MetricType.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/metrics/v4/metrics.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.metrics.v4; /** * Protobuf enum {@code chalk.metrics.v4.MetricType} */ public enum MetricType implements com.google.protobuf.ProtocolMessageEnum { /** * <code>METRIC_TYPE_UNSPECIFIED = 0;</code> */ METRIC_TYPE_UNSPECIFIED(0), /** * <code>METRIC_TYPE_COUNTER = 1;</code> */ METRIC_TYPE_COUNTER(1), /** * <code>METRIC_TYPE_UP_DOWN_COUNTER = 2;</code> */ METRIC_TYPE_UP_DOWN_COUNTER(2), /** * <code>METRIC_TYPE_HISTOGRAM = 3;</code> */ METRIC_TYPE_HISTOGRAM(3), UNRECOGNIZED(-1), ; /** * <code>METRIC_TYPE_UNSPECIFIED = 0;</code> */ public static final int METRIC_TYPE_UNSPECIFIED_VALUE = 0; /** * <code>METRIC_TYPE_COUNTER = 1;</code> */ public static final int METRIC_TYPE_COUNTER_VALUE = 1; /** * <code>METRIC_TYPE_UP_DOWN_COUNTER = 2;</code> */ public static final int METRIC_TYPE_UP_DOWN_COUNTER_VALUE = 2; /** * <code>METRIC_TYPE_HISTOGRAM = 3;</code> */ public static final int METRIC_TYPE_HISTOGRAM_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 MetricType 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 MetricType forNumber(int value) { switch (value) { case 0: return METRIC_TYPE_UNSPECIFIED; case 1: return METRIC_TYPE_COUNTER; case 2: return METRIC_TYPE_UP_DOWN_COUNTER; case 3: return METRIC_TYPE_HISTOGRAM; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<MetricType> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< MetricType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<MetricType>() { public MetricType findValueByNumber(int number) { return MetricType.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.metrics.v4.MetricsProto.getDescriptor().getEnumTypes().get(0); } private static final MetricType[] VALUES = values(); public static MetricType 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 MetricType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:chalk.metrics.v4.MetricType) }
0
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/metrics/v4/MetricsProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/metrics/v4/metrics.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.metrics.v4; public final class MetricsProto { private MetricsProto() {} 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_metrics_v4_MetricBatch_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_metrics_v4_MetricBatch_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_metrics_v4_Metric_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_metrics_v4_Metric_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_metrics_v4_Metric_AdditionalTagsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_metrics_v4_Metric_AdditionalTagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_metrics_v4_MetricStatistics_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_metrics_v4_MetricStatistics_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\036chalk/metrics/v4/metrics.proto\022\020chalk." + "metrics.v4\032\037google/protobuf/timestamp.pr" + "oto\"A\n\013MetricBatch\0222\n\007metrics\030\001 \003(\0132\030.ch" + "alk.metrics.v4.MetricR\007metrics\"\260\005\n\006Metri" + "c\022\023\n\002id\030\001 \001(\003H\001R\002id\210\001\001\022%\n\016environment_id" + "\030\002 \001(\tR\renvironmentId\022?\n\tnamespace\030\003 \001(\016" + "2!.chalk.metrics.v4.MetricNamespaceR\tnam" + "espace\022\026\n\006source\030\004 \001(\tR\006source\0220\n\004name\030\005" + " \001(\0162\034.chalk.metrics.v4.MetricNameR\004name" + "\0220\n\004type\030\006 \001(\0162\034.chalk.metrics.v4.Metric" + "TypeR\004type\022#\n\rdeployment_id\030\007 \001(\tR\014deplo" + "ymentId\022\030\n\006sketch\030\n \001(\tH\000R\006sketch\022\032\n\007num" + "eric\030\013 \001(\001H\000R\007numeric\022G\n\nstatistics\030\014 \001(" + "\0132\".chalk.metrics.v4.MetricStatisticsH\002R" + "\nstatistics\210\001\001\022@\n\013observed_at\030\024 \001(\0132\032.go" + "ogle.protobuf.TimestampH\003R\nobservedAt\210\001\001" + "\022U\n\017additional_tags\030\036 \003(\0132,.chalk.metric" + "s.v4.Metric.AdditionalTagsEntryR\016additio" + "nalTags\032A\n\023AdditionalTagsEntry\022\020\n\003key\030\001 " + "\001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001B\007\n\005va" + "lueB\005\n\003_idB\r\n\013_statisticsB\016\n\014_observed_a" + "t\"\370\001\n\020MetricStatistics\022\025\n\003min\030\001 \001(\001H\000R\003m" + "in\210\001\001\022\025\n\003max\030\002 \001(\001H\001R\003max\210\001\001\022\031\n\005count\030\003 " + "\001(\004H\002R\005count\210\001\001\022\"\n\nnull_count\030\004 \001(\004H\003R\tn" + "ullCount\210\001\001\022\027\n\004mean\030\005 \001(\001H\004R\004mean\210\001\001\022\037\n\010" + "variance\030\006 \001(\001H\005R\010variance\210\001\001B\006\n\004_minB\006\n" + "\004_maxB\010\n\006_countB\r\n\013_null_countB\007\n\005_meanB" + "\013\n\t_variance*~\n\nMetricType\022\033\n\027METRIC_TYP" + "E_UNSPECIFIED\020\000\022\027\n\023METRIC_TYPE_COUNTER\020\001" + "\022\037\n\033METRIC_TYPE_UP_DOWN_COUNTER\020\002\022\031\n\025MET" + "RIC_TYPE_HISTOGRAM\020\003*n\n\017MetricNamespace\022" + " \n\034METRIC_NAMESPACE_UNSPECIFIED\020\000\022\034\n\030MET" + "RIC_NAMESPACE_FEATURE\020\001\022\033\n\027METRIC_NAMESP" + "ACE_SYSTEM\020\002*\205\004\n\nMetricName\022\033\n\027METRIC_NA" + "ME_UNSPECIFIED\020\000\022#\n\037METRIC_NAME_DEFAULT_" + "VALUES_USED\020\001\022\"\n\036METRIC_NAME_GIVENS_VALU" + "ES_USED\020\002\022)\n%METRIC_NAME_OFFLINE_STORE_V" + "ALUES_USED\020\003\022(\n$METRIC_NAME_ONLINE_STORE" + "_VALUES_USED\020\004\022$\n METRIC_NAME_RESOLVER_V" + "ALUES_USED\020\005\022\032\n\026METRIC_NAME_NULL_COUNT\020\006" + "\022\036\n\032METRIC_NAME_NON_NULL_COUNT\020\007\022\035\n\031METR" + "IC_NAME_MISSING_COUNT\020\010\022\032\n\026METRIC_NAME_Z" + "ERO_COUNT\020\t\022#\n\037METRIC_NAME_VALUES_DISTRI" + "BUTION\020\n\022 \n\034METRIC_NAME_RESOLVER_LATENCY" + "\020\013\022 \n\034METRIC_NAME_BYTES_DOWNLOADED\020\014\022\030\n\024" + "METRIC_NAME_NUM_ROWS\020\r\022\034\n\030METRIC_NAME_NU" + "M_FEATURES\020\016B\222\001\n ai.chalk.protos.chalk.m" + "etrics.v4B\014MetricsProtoP\001\242\002\003CMX\252\002\020Chalk." + "Metrics.V4\312\002\020Chalk\\Metrics\\V4\342\002\034Chalk\\Me" + "trics\\V4\\GPBMetadata\352\002\022Chalk::Metrics::V" + "4b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_chalk_metrics_v4_MetricBatch_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_chalk_metrics_v4_MetricBatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_metrics_v4_MetricBatch_descriptor, new java.lang.String[] { "Metrics", }); internal_static_chalk_metrics_v4_Metric_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_chalk_metrics_v4_Metric_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_metrics_v4_Metric_descriptor, new java.lang.String[] { "Id", "EnvironmentId", "Namespace", "Source", "Name", "Type", "DeploymentId", "Sketch", "Numeric", "Statistics", "ObservedAt", "AdditionalTags", "Value", }); internal_static_chalk_metrics_v4_Metric_AdditionalTagsEntry_descriptor = internal_static_chalk_metrics_v4_Metric_descriptor.getNestedTypes().get(0); internal_static_chalk_metrics_v4_Metric_AdditionalTagsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_metrics_v4_Metric_AdditionalTagsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_metrics_v4_MetricStatistics_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_chalk_metrics_v4_MetricStatistics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_metrics_v4_MetricStatistics_descriptor, new java.lang.String[] { "Min", "Max", "Count", "NullCount", "Mean", "Variance", }); 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/pubsub
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub/v1/HeartbeatProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/pubsub/v1/heartbeat.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.pubsub.v1; public final class HeartbeatProto { private HeartbeatProto() {} 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_HeartbeatPubSub_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_pubsub_v1_HeartbeatPubSub_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/pubsub/v1/heartbeat.proto\022\017chalk" + ".pubsub.v1\032\037google/protobuf/timestamp.pr" + "oto\"\263\002\n\017HeartbeatPubSub\022!\n\014operation_id\030" + "\001 \001(\tR\013operationId\022\035\n\nproject_id\030\002 \001(\tR\t" + "projectId\022%\n\016environment_id\030\003 \001(\tR\renvir" + "onmentId\022\027\n\007team_id\030\004 \001(\tR\006teamId\022#\n\rdep" + "loyment_id\030\005 \001(\tR\014deploymentId\022=\n\014genera" + "ted_at\030\006 \001(\0132\032.google.protobuf.Timestamp" + "R\013generatedAt\022\037\n\013computer_id\030\007 \001(\rR\ncomp" + "uterId\022\031\n\010shard_id\030\010 \001(\rR\007shardIdB\243\001\n\037ai" + ".chalk.protos.chalk.pubsub.v1B\016Heartbeat" + "ProtoP\001Z\022pubsub/v1;pubsubv1\242\002\003CPX\252\002\017Chal" + "k.Pubsub.V1\312\002\017Chalk\\Pubsub\\V1\342\002\033Chalk\\Pu" + "bsub\\V1\\GPBMetadata\352\002\021Chalk::Pubsub::V1b" + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_chalk_pubsub_v1_HeartbeatPubSub_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_chalk_pubsub_v1_HeartbeatPubSub_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_pubsub_v1_HeartbeatPubSub_descriptor, new java.lang.String[] { "OperationId", "ProjectId", "EnvironmentId", "TeamId", "DeploymentId", "GeneratedAt", "ComputerId", "ShardId", }); 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/pubsub
java-sources/ai/chalk/chalk-java/1.2.1/ai/chalk/protos/chalk/pubsub/v1/HeartbeatPubSub.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/pubsub/v1/heartbeat.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.pubsub.v1; /** * Protobuf type {@code chalk.pubsub.v1.HeartbeatPubSub} */ public final class HeartbeatPubSub extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:chalk.pubsub.v1.HeartbeatPubSub) HeartbeatPubSubOrBuilder { private static final long serialVersionUID = 0L; // Use HeartbeatPubSub.newBuilder() to construct. private HeartbeatPubSub(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private HeartbeatPubSub() { operationId_ = ""; projectId_ = ""; environmentId_ = ""; teamId_ = ""; deploymentId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HeartbeatPubSub(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.pubsub.v1.HeartbeatProto.internal_static_chalk_pubsub_v1_HeartbeatPubSub_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.pubsub.v1.HeartbeatProto.internal_static_chalk_pubsub_v1_HeartbeatPubSub_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub.class, ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub.Builder.class); } private int bitField0_; public static final int OPERATION_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object operationId_ = ""; /** * <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; } } /** * <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 PROJECT_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** * <code>string project_id = 2 [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 = 2 [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 ENVIRONMENT_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object environmentId_ = ""; /** * <code>string environment_id = 3 [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; } } /** * <code>string environment_id = 3 [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 TEAM_ID_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object teamId_ = ""; /** * <code>string team_id = 4 [json_name = "teamId"];</code> * @return The teamId. */ @java.lang.Override public java.lang.String getTeamId() { java.lang.Object ref = teamId_; 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(); teamId_ = s; return s; } } /** * <code>string team_id = 4 [json_name = "teamId"];</code> * @return The bytes for teamId. */ @java.lang.Override public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEPLOYMENT_ID_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object deploymentId_ = ""; /** * <code>string deployment_id = 5 [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 = 5 [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 GENERATED_AT_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp generatedAt_; /** * <code>.google.protobuf.Timestamp generated_at = 6 [json_name = "generatedAt"];</code> * @return Whether the generatedAt field is set. */ @java.lang.Override public boolean hasGeneratedAt() { return ((bitField0_ & 0x00000001) != 0); } /** * <code>.google.protobuf.Timestamp generated_at = 6 [json_name = "generatedAt"];</code> * @return The generatedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getGeneratedAt() { return generatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : generatedAt_; } /** * <code>.google.protobuf.Timestamp generated_at = 6 [json_name = "generatedAt"];</code> */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getGeneratedAtOrBuilder() { return generatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : generatedAt_; } public static final int COMPUTER_ID_FIELD_NUMBER = 7; private int computerId_ = 0; /** * <code>uint32 computer_id = 7 [json_name = "computerId"];</code> * @return The computerId. */ @java.lang.Override public int getComputerId() { return computerId_; } public static final int SHARD_ID_FIELD_NUMBER = 8; private int shardId_ = 0; /** * <code>uint32 shard_id = 8 [json_name = "shardId"];</code> * @return The shardId. */ @java.lang.Override public int getShardId() { return shardId_; } 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(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, environmentId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, teamId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deploymentId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, deploymentId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getGeneratedAt()); } if (computerId_ != 0) { output.writeUInt32(7, computerId_); } if (shardId_ != 0) { output.writeUInt32(8, shardId_); } 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(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, environmentId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, teamId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deploymentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, deploymentId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getGeneratedAt()); } if (computerId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, computerId_); } if (shardId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, shardId_); } 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.HeartbeatPubSub)) { return super.equals(obj); } ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub other = (ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub) obj; if (!getOperationId() .equals(other.getOperationId())) return false; if (!getProjectId() .equals(other.getProjectId())) return false; if (!getEnvironmentId() .equals(other.getEnvironmentId())) return false; if (!getTeamId() .equals(other.getTeamId())) return false; if (!getDeploymentId() .equals(other.getDeploymentId())) return false; if (hasGeneratedAt() != other.hasGeneratedAt()) return false; if (hasGeneratedAt()) { if (!getGeneratedAt() .equals(other.getGeneratedAt())) return false; } if (getComputerId() != other.getComputerId()) return false; if (getShardId() != other.getShardId()) 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) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getEnvironmentId().hashCode(); hash = (37 * hash) + TEAM_ID_FIELD_NUMBER; hash = (53 * hash) + getTeamId().hashCode(); hash = (37 * hash) + DEPLOYMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getDeploymentId().hashCode(); if (hasGeneratedAt()) { hash = (37 * hash) + GENERATED_AT_FIELD_NUMBER; hash = (53 * hash) + getGeneratedAt().hashCode(); } hash = (37 * hash) + COMPUTER_ID_FIELD_NUMBER; hash = (53 * hash) + getComputerId(); hash = (37 * hash) + SHARD_ID_FIELD_NUMBER; hash = (53 * hash) + getShardId(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub 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.HeartbeatPubSub parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub 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.HeartbeatPubSub parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub 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.HeartbeatPubSub 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.HeartbeatPubSub 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.HeartbeatPubSub 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.HeartbeatPubSub 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.HeartbeatPubSub 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.HeartbeatPubSub 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.HeartbeatPubSub 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.HeartbeatPubSub} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements // @@protoc_insertion_point(builder_implements:chalk.pubsub.v1.HeartbeatPubSub) ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSubOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ai.chalk.protos.chalk.pubsub.v1.HeartbeatProto.internal_static_chalk_pubsub_v1_HeartbeatPubSub_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ai.chalk.protos.chalk.pubsub.v1.HeartbeatProto.internal_static_chalk_pubsub_v1_HeartbeatPubSub_fieldAccessorTable .ensureFieldAccessorsInitialized( ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub.class, ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub.Builder.class); } // Construct using ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getGeneratedAtFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operationId_ = ""; projectId_ = ""; environmentId_ = ""; teamId_ = ""; deploymentId_ = ""; generatedAt_ = null; if (generatedAtBuilder_ != null) { generatedAtBuilder_.dispose(); generatedAtBuilder_ = null; } computerId_ = 0; shardId_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ai.chalk.protos.chalk.pubsub.v1.HeartbeatProto.internal_static_chalk_pubsub_v1_HeartbeatPubSub_descriptor; } @java.lang.Override public ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub getDefaultInstanceForType() { return ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub.getDefaultInstance(); } @java.lang.Override public ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub build() { ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub buildPartial() { ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub result = new ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.operationId_ = operationId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.projectId_ = projectId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.environmentId_ = environmentId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.teamId_ = teamId_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.deploymentId_ = deploymentId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { result.generatedAt_ = generatedAtBuilder_ == null ? generatedAt_ : generatedAtBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { result.computerId_ = computerId_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.shardId_ = shardId_; } 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.HeartbeatPubSub) { return mergeFrom((ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub other) { if (other == ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub.getDefaultInstance()) return this; if (!other.getOperationId().isEmpty()) { operationId_ = other.operationId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getEnvironmentId().isEmpty()) { environmentId_ = other.environmentId_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getTeamId().isEmpty()) { teamId_ = other.teamId_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getDeploymentId().isEmpty()) { deploymentId_ = other.deploymentId_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasGeneratedAt()) { mergeGeneratedAt(other.getGeneratedAt()); } if (other.getComputerId() != 0) { setComputerId(other.getComputerId()); } if (other.getShardId() != 0) { setShardId(other.getShardId()); } 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: { projectId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { environmentId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { teamId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { deploymentId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getGeneratedAtFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 56: { computerId_ = input.readUInt32(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { shardId_ = input.readUInt32(); bitField0_ |= 0x00000080; break; } // case 64 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_ = ""; /** * <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; } } /** * <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; } } /** * <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; } /** * <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; } /** * <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 projectId_ = ""; /** * <code>string project_id = 2 [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 = 2 [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 = 2 [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_ |= 0x00000002; onChanged(); return this; } /** * <code>string project_id = 2 [json_name = "projectId"];</code> * @return This builder for chaining. */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>string project_id = 2 [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_ |= 0x00000002; onChanged(); return this; } private java.lang.Object environmentId_ = ""; /** * <code>string environment_id = 3 [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; } } /** * <code>string environment_id = 3 [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; } } /** * <code>string environment_id = 3 [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_ |= 0x00000004; onChanged(); return this; } /** * <code>string environment_id = 3 [json_name = "environmentId"];</code> * @return This builder for chaining. */ public Builder clearEnvironmentId() { environmentId_ = getDefaultInstance().getEnvironmentId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>string environment_id = 3 [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_ |= 0x00000004; onChanged(); return this; } private java.lang.Object teamId_ = ""; /** * <code>string team_id = 4 [json_name = "teamId"];</code> * @return The teamId. */ public java.lang.String getTeamId() { java.lang.Object ref = teamId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); teamId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>string team_id = 4 [json_name = "teamId"];</code> * @return The bytes for teamId. */ public com.google.protobuf.ByteString getTeamIdBytes() { java.lang.Object ref = teamId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); teamId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>string team_id = 4 [json_name = "teamId"];</code> * @param value The teamId to set. * @return This builder for chaining. */ public Builder setTeamId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } teamId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * <code>string team_id = 4 [json_name = "teamId"];</code> * @return This builder for chaining. */ public Builder clearTeamId() { teamId_ = getDefaultInstance().getTeamId(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * <code>string team_id = 4 [json_name = "teamId"];</code> * @param value The bytes for teamId to set. * @return This builder for chaining. */ public Builder setTeamIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); teamId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object deploymentId_ = ""; /** * <code>string deployment_id = 5 [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 = 5 [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 = 5 [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_ |= 0x00000010; onChanged(); return this; } /** * <code>string deployment_id = 5 [json_name = "deploymentId"];</code> * @return This builder for chaining. */ public Builder clearDeploymentId() { deploymentId_ = getDefaultInstance().getDeploymentId(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * <code>string deployment_id = 5 [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_ |= 0x00000010; onChanged(); return this; } private com.google.protobuf.Timestamp generatedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> generatedAtBuilder_; /** * <code>.google.protobuf.Timestamp generated_at = 6 [json_name = "generatedAt"];</code> * @return Whether the generatedAt field is set. */ public boolean hasGeneratedAt() { return ((bitField0_ & 0x00000020) != 0); } /** * <code>.google.protobuf.Timestamp generated_at = 6 [json_name = "generatedAt"];</code> * @return The generatedAt. */ public com.google.protobuf.Timestamp getGeneratedAt() { if (generatedAtBuilder_ == null) { return generatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : generatedAt_; } else { return generatedAtBuilder_.getMessage(); } } /** * <code>.google.protobuf.Timestamp generated_at = 6 [json_name = "generatedAt"];</code> */ public Builder setGeneratedAt(com.google.protobuf.Timestamp value) { if (generatedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } generatedAt_ = value; } else { generatedAtBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>.google.protobuf.Timestamp generated_at = 6 [json_name = "generatedAt"];</code> */ public Builder setGeneratedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (generatedAtBuilder_ == null) { generatedAt_ = builderForValue.build(); } else { generatedAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * <code>.google.protobuf.Timestamp generated_at = 6 [json_name = "generatedAt"];</code> */ public Builder mergeGeneratedAt(com.google.protobuf.Timestamp value) { if (generatedAtBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && generatedAt_ != null && generatedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getGeneratedAtBuilder().mergeFrom(value); } else { generatedAt_ = value; } } else { generatedAtBuilder_.mergeFrom(value); } if (generatedAt_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * <code>.google.protobuf.Timestamp generated_at = 6 [json_name = "generatedAt"];</code> */ public Builder clearGeneratedAt() { bitField0_ = (bitField0_ & ~0x00000020); generatedAt_ = null; if (generatedAtBuilder_ != null) { generatedAtBuilder_.dispose(); generatedAtBuilder_ = null; } onChanged(); return this; } /** * <code>.google.protobuf.Timestamp generated_at = 6 [json_name = "generatedAt"];</code> */ public com.google.protobuf.Timestamp.Builder getGeneratedAtBuilder() { bitField0_ |= 0x00000020; onChanged(); return getGeneratedAtFieldBuilder().getBuilder(); } /** * <code>.google.protobuf.Timestamp generated_at = 6 [json_name = "generatedAt"];</code> */ public com.google.protobuf.TimestampOrBuilder getGeneratedAtOrBuilder() { if (generatedAtBuilder_ != null) { return generatedAtBuilder_.getMessageOrBuilder(); } else { return generatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : generatedAt_; } } /** * <code>.google.protobuf.Timestamp generated_at = 6 [json_name = "generatedAt"];</code> */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getGeneratedAtFieldBuilder() { if (generatedAtBuilder_ == null) { generatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getGeneratedAt(), getParentForChildren(), isClean()); generatedAt_ = null; } return generatedAtBuilder_; } private int computerId_ ; /** * <code>uint32 computer_id = 7 [json_name = "computerId"];</code> * @return The computerId. */ @java.lang.Override public int getComputerId() { return computerId_; } /** * <code>uint32 computer_id = 7 [json_name = "computerId"];</code> * @param value The computerId to set. * @return This builder for chaining. */ public Builder setComputerId(int value) { computerId_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * <code>uint32 computer_id = 7 [json_name = "computerId"];</code> * @return This builder for chaining. */ public Builder clearComputerId() { bitField0_ = (bitField0_ & ~0x00000040); computerId_ = 0; onChanged(); return this; } private int shardId_ ; /** * <code>uint32 shard_id = 8 [json_name = "shardId"];</code> * @return The shardId. */ @java.lang.Override public int getShardId() { return shardId_; } /** * <code>uint32 shard_id = 8 [json_name = "shardId"];</code> * @param value The shardId to set. * @return This builder for chaining. */ public Builder setShardId(int value) { shardId_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * <code>uint32 shard_id = 8 [json_name = "shardId"];</code> * @return This builder for chaining. */ public Builder clearShardId() { bitField0_ = (bitField0_ & ~0x00000080); shardId_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:chalk.pubsub.v1.HeartbeatPubSub) } // @@protoc_insertion_point(class_scope:chalk.pubsub.v1.HeartbeatPubSub) private static final ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub(); } public static ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<HeartbeatPubSub> PARSER = new com.google.protobuf.AbstractParser<HeartbeatPubSub>() { @java.lang.Override public HeartbeatPubSub 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<HeartbeatPubSub> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<HeartbeatPubSub> getParserForType() { return PARSER; } @java.lang.Override public ai.chalk.protos.chalk.pubsub.v1.HeartbeatPubSub 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/HeartbeatPubSubOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chalk/pubsub/v1/heartbeat.proto // Protobuf Java Version: 3.25.1 package ai.chalk.protos.chalk.pubsub.v1; public interface HeartbeatPubSubOrBuilder extends // @@protoc_insertion_point(interface_extends:chalk.pubsub.v1.HeartbeatPubSub) com.google.protobuf.MessageOrBuilder { /** * <code>string operation_id = 1 [json_name = "operationId"];</code> * @return The operationId. */ java.lang.String getOperationId(); /** * <code>string operation_id = 1 [json_name = "operationId"];</code> * @return The bytes for operationId. */ com.google.protobuf.ByteString getOperationIdBytes(); /** * <code>string project_id = 2 [json_name = "projectId"];</code> * @return The projectId. */ java.lang.String getProjectId(); /** * <code>string project_id = 2 [json_name = "projectId"];</code> * @return The bytes for projectId. */ com.google.protobuf.ByteString getProjectIdBytes(); /** * <code>string environment_id = 3 [json_name = "environmentId"];</code> * @return The environmentId. */ java.lang.String getEnvironmentId(); /** * <code>string environment_id = 3 [json_name = "environmentId"];</code> * @return The bytes for environmentId. */ com.google.protobuf.ByteString getEnvironmentIdBytes(); /** * <code>string team_id = 4 [json_name = "teamId"];</code> * @return The teamId. */ java.lang.String getTeamId(); /** * <code>string team_id = 4 [json_name = "teamId"];</code> * @return The bytes for teamId. */ com.google.protobuf.ByteString getTeamIdBytes(); /** * <code>string deployment_id = 5 [json_name = "deploymentId"];</code> * @return The deploymentId. */ java.lang.String getDeploymentId(); /** * <code>string deployment_id = 5 [json_name = "deploymentId"];</code> * @return The bytes for deploymentId. */ com.google.protobuf.ByteString getDeploymentIdBytes(); /** * <code>.google.protobuf.Timestamp generated_at = 6 [json_name = "generatedAt"];</code> * @return Whether the generatedAt field is set. */ boolean hasGeneratedAt(); /** * <code>.google.protobuf.Timestamp generated_at = 6 [json_name = "generatedAt"];</code> * @return The generatedAt. */ com.google.protobuf.Timestamp getGeneratedAt(); /** * <code>.google.protobuf.Timestamp generated_at = 6 [json_name = "generatedAt"];</code> */ com.google.protobuf.TimestampOrBuilder getGeneratedAtOrBuilder(); /** * <code>uint32 computer_id = 7 [json_name = "computerId"];</code> * @return The computerId. */ int getComputerId(); /** * <code>uint32 shard_id = 8 [json_name = "shardId"];</code> * @return The shardId. */ int getShardId(); }
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/NodeStatusProto.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 final class NodeStatusProto { private NodeStatusProto() {} 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_NodeStatusPubSub_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_pubsub_v1_NodeStatusPubSub_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_pubsub_v1_NodeStatusPubSub_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_pubsub_v1_NodeStatusPubSub_LabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_chalk_pubsub_v1_NodeStatusPubSub_AnnotationsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_chalk_pubsub_v1_NodeStatusPubSub_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/node_status.proto\022\017cha" + "lk.pubsub.v1\032\034gen_bq_schema/bq_field.pro" + "to\032\034gen_bq_schema/bq_table.proto\"\364\007\n\020Nod" + "eStatusPubSub\022\022\n\004team\030\001 \001(\tR\004team\022\022\n\004nam" + "e\030\002 \001(\tR\004name\022\020\n\003uid\030\003 \001(\tR\003uid\022#\n\rinsta" + "nce_type\030\004 \001(\tR\014instanceType\022\026\n\006region\030\005" + " \001(\tR\006region\022\022\n\004zone\030\006 \001(\tR\004zone\022=\n\022crea" + "tion_timestamp\030\010 \001(\003B\016\352?\013\022\tTIMESTAMPR\021cr" + "eationTimestamp\022=\n\022deletion_timestamp\030\t " + "\001(\003B\016\352?\013\022\tTIMESTAMPR\021deletionTimestamp\022=" + "\n\022observed_timestamp\030\n \001(\003B\016\352?\013\022\tTIMESTA" + "MPR\021observedTimestamp\022E\n\006labels\030\013 \003(\0132-." + "chalk.pubsub.v1.NodeStatusPubSub.LabelsE" + "ntryR\006labels\022T\n\013annotations\030\014 \003(\01322.chal" + "k.pubsub.v1.NodeStatusPubSub.Annotations" + "EntryR\013annotations\022\035\n\nmachine_id\030\r \001(\tR\t" + "machineId\022\037\n\013system_uuid\030\016 \001(\tR\nsystemUu" + "id\022\027\n\007boot_id\030\017 \001(\tR\006bootId\022$\n\runschedul" + "able\030\020 \001(\010R\runschedulable\022\034\n\tnamespace\030\021" + " \001(\tR\tnamespace\022\037\n\013instance_id\030\022 \001(\tR\nin" + "stanceId\022\030\n\007cluster\030\023 \001(\tR\007cluster\022\033\n\tto" + "tal_cpu\030\024 \001(\tR\010totalCpu\022!\n\014total_memory\030" + "\025 \001(\tR\013totalMemory\022\'\n\017allocatable_cpu\030\026 " + "\001(\tR\016allocatableCpu\022-\n\022allocatable_memor" + "y\030\027 \001(\tR\021allocatableMemory\0329\n\013LabelsEntr" + "y\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005valu" + "e:\0028\001\032>\n\020AnnotationsEntry\022\020\n\003key\030\001 \001(\tR\003" + "key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001:\020\352?\r\n\013node" + "_statusB\244\001\n\037ai.chalk.protos.chalk.pubsub" + ".v1B\017NodeStatusProtoP\001Z\022pubsub/v1;pubsub" + "v1\242\002\003CPX\252\002\017Chalk.Pubsub.V1\312\002\017Chalk\\Pubsu" + "b\\V1\342\002\033Chalk\\Pubsub\\V1\\GPBMetadata\352\002\021Cha" + "lk::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_NodeStatusPubSub_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_chalk_pubsub_v1_NodeStatusPubSub_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_pubsub_v1_NodeStatusPubSub_descriptor, new java.lang.String[] { "Team", "Name", "Uid", "InstanceType", "Region", "Zone", "CreationTimestamp", "DeletionTimestamp", "ObservedTimestamp", "Labels", "Annotations", "MachineId", "SystemUuid", "BootId", "Unschedulable", "Namespace", "InstanceId", "Cluster", "TotalCpu", "TotalMemory", "AllocatableCpu", "AllocatableMemory", }); internal_static_chalk_pubsub_v1_NodeStatusPubSub_LabelsEntry_descriptor = internal_static_chalk_pubsub_v1_NodeStatusPubSub_descriptor.getNestedTypes().get(0); internal_static_chalk_pubsub_v1_NodeStatusPubSub_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_pubsub_v1_NodeStatusPubSub_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_chalk_pubsub_v1_NodeStatusPubSub_AnnotationsEntry_descriptor = internal_static_chalk_pubsub_v1_NodeStatusPubSub_descriptor.getNestedTypes().get(1); internal_static_chalk_pubsub_v1_NodeStatusPubSub_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_chalk_pubsub_v1_NodeStatusPubSub_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) }