xyz.block.ftl.v1.schema.IngressPathComponent Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: xyz/block/ftl/v1/schema/schema.proto
// Protobuf Java Version: 3.25.4
package xyz.block.ftl.v1.schema;
/**
* Protobuf type {@code xyz.block.ftl.v1.schema.IngressPathComponent}
*/
public final class IngressPathComponent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.schema.IngressPathComponent)
IngressPathComponentOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngressPathComponent.newBuilder() to construct.
private IngressPathComponent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngressPathComponent() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IngressPathComponent();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_IngressPathComponent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_IngressPathComponent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.v1.schema.IngressPathComponent.class, xyz.block.ftl.v1.schema.IngressPathComponent.Builder.class);
}
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 {
INGRESS_PATH_LITERAL(1),
INGRESS_PATH_PARAMETER(2),
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 1: return INGRESS_PATH_LITERAL;
case 2: return INGRESS_PATH_PARAMETER;
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 INGRESS_PATH_LITERAL_FIELD_NUMBER = 1;
/**
* .xyz.block.ftl.v1.schema.IngressPathLiteral ingress_path_literal = 1;
* @return Whether the ingressPathLiteral field is set.
*/
@java.lang.Override
public boolean hasIngressPathLiteral() {
return valueCase_ == 1;
}
/**
* .xyz.block.ftl.v1.schema.IngressPathLiteral ingress_path_literal = 1;
* @return The ingressPathLiteral.
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.IngressPathLiteral getIngressPathLiteral() {
if (valueCase_ == 1) {
return (xyz.block.ftl.v1.schema.IngressPathLiteral) value_;
}
return xyz.block.ftl.v1.schema.IngressPathLiteral.getDefaultInstance();
}
/**
* .xyz.block.ftl.v1.schema.IngressPathLiteral ingress_path_literal = 1;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.IngressPathLiteralOrBuilder getIngressPathLiteralOrBuilder() {
if (valueCase_ == 1) {
return (xyz.block.ftl.v1.schema.IngressPathLiteral) value_;
}
return xyz.block.ftl.v1.schema.IngressPathLiteral.getDefaultInstance();
}
public static final int INGRESS_PATH_PARAMETER_FIELD_NUMBER = 2;
/**
* .xyz.block.ftl.v1.schema.IngressPathParameter ingress_path_parameter = 2;
* @return Whether the ingressPathParameter field is set.
*/
@java.lang.Override
public boolean hasIngressPathParameter() {
return valueCase_ == 2;
}
/**
* .xyz.block.ftl.v1.schema.IngressPathParameter ingress_path_parameter = 2;
* @return The ingressPathParameter.
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.IngressPathParameter getIngressPathParameter() {
if (valueCase_ == 2) {
return (xyz.block.ftl.v1.schema.IngressPathParameter) value_;
}
return xyz.block.ftl.v1.schema.IngressPathParameter.getDefaultInstance();
}
/**
* .xyz.block.ftl.v1.schema.IngressPathParameter ingress_path_parameter = 2;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.IngressPathParameterOrBuilder getIngressPathParameterOrBuilder() {
if (valueCase_ == 2) {
return (xyz.block.ftl.v1.schema.IngressPathParameter) value_;
}
return xyz.block.ftl.v1.schema.IngressPathParameter.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 (valueCase_ == 1) {
output.writeMessage(1, (xyz.block.ftl.v1.schema.IngressPathLiteral) value_);
}
if (valueCase_ == 2) {
output.writeMessage(2, (xyz.block.ftl.v1.schema.IngressPathParameter) value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (valueCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (xyz.block.ftl.v1.schema.IngressPathLiteral) value_);
}
if (valueCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (xyz.block.ftl.v1.schema.IngressPathParameter) 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 xyz.block.ftl.v1.schema.IngressPathComponent)) {
return super.equals(obj);
}
xyz.block.ftl.v1.schema.IngressPathComponent other = (xyz.block.ftl.v1.schema.IngressPathComponent) obj;
if (!getValueCase().equals(other.getValueCase())) return false;
switch (valueCase_) {
case 1:
if (!getIngressPathLiteral()
.equals(other.getIngressPathLiteral())) return false;
break;
case 2:
if (!getIngressPathParameter()
.equals(other.getIngressPathParameter())) 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 (valueCase_) {
case 1:
hash = (37 * hash) + INGRESS_PATH_LITERAL_FIELD_NUMBER;
hash = (53 * hash) + getIngressPathLiteral().hashCode();
break;
case 2:
hash = (37 * hash) + INGRESS_PATH_PARAMETER_FIELD_NUMBER;
hash = (53 * hash) + getIngressPathParameter().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static xyz.block.ftl.v1.schema.IngressPathComponent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.schema.IngressPathComponent parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.v1.schema.IngressPathComponent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.schema.IngressPathComponent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.v1.schema.IngressPathComponent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.schema.IngressPathComponent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.v1.schema.IngressPathComponent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.schema.IngressPathComponent 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 xyz.block.ftl.v1.schema.IngressPathComponent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.schema.IngressPathComponent 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 xyz.block.ftl.v1.schema.IngressPathComponent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.schema.IngressPathComponent 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(xyz.block.ftl.v1.schema.IngressPathComponent 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 xyz.block.ftl.v1.schema.IngressPathComponent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.schema.IngressPathComponent)
xyz.block.ftl.v1.schema.IngressPathComponentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_IngressPathComponent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_IngressPathComponent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.v1.schema.IngressPathComponent.class, xyz.block.ftl.v1.schema.IngressPathComponent.Builder.class);
}
// Construct using xyz.block.ftl.v1.schema.IngressPathComponent.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (ingressPathLiteralBuilder_ != null) {
ingressPathLiteralBuilder_.clear();
}
if (ingressPathParameterBuilder_ != null) {
ingressPathParameterBuilder_.clear();
}
valueCase_ = 0;
value_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_IngressPathComponent_descriptor;
}
@java.lang.Override
public xyz.block.ftl.v1.schema.IngressPathComponent getDefaultInstanceForType() {
return xyz.block.ftl.v1.schema.IngressPathComponent.getDefaultInstance();
}
@java.lang.Override
public xyz.block.ftl.v1.schema.IngressPathComponent build() {
xyz.block.ftl.v1.schema.IngressPathComponent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xyz.block.ftl.v1.schema.IngressPathComponent buildPartial() {
xyz.block.ftl.v1.schema.IngressPathComponent result = new xyz.block.ftl.v1.schema.IngressPathComponent(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(xyz.block.ftl.v1.schema.IngressPathComponent result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(xyz.block.ftl.v1.schema.IngressPathComponent result) {
result.valueCase_ = valueCase_;
result.value_ = this.value_;
if (valueCase_ == 1 &&
ingressPathLiteralBuilder_ != null) {
result.value_ = ingressPathLiteralBuilder_.build();
}
if (valueCase_ == 2 &&
ingressPathParameterBuilder_ != null) {
result.value_ = ingressPathParameterBuilder_.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 xyz.block.ftl.v1.schema.IngressPathComponent) {
return mergeFrom((xyz.block.ftl.v1.schema.IngressPathComponent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xyz.block.ftl.v1.schema.IngressPathComponent other) {
if (other == xyz.block.ftl.v1.schema.IngressPathComponent.getDefaultInstance()) return this;
switch (other.getValueCase()) {
case INGRESS_PATH_LITERAL: {
mergeIngressPathLiteral(other.getIngressPathLiteral());
break;
}
case INGRESS_PATH_PARAMETER: {
mergeIngressPathParameter(other.getIngressPathParameter());
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 10: {
input.readMessage(
getIngressPathLiteralFieldBuilder().getBuilder(),
extensionRegistry);
valueCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getIngressPathParameterFieldBuilder().getBuilder(),
extensionRegistry);
valueCase_ = 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 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 com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.IngressPathLiteral, xyz.block.ftl.v1.schema.IngressPathLiteral.Builder, xyz.block.ftl.v1.schema.IngressPathLiteralOrBuilder> ingressPathLiteralBuilder_;
/**
* .xyz.block.ftl.v1.schema.IngressPathLiteral ingress_path_literal = 1;
* @return Whether the ingressPathLiteral field is set.
*/
@java.lang.Override
public boolean hasIngressPathLiteral() {
return valueCase_ == 1;
}
/**
* .xyz.block.ftl.v1.schema.IngressPathLiteral ingress_path_literal = 1;
* @return The ingressPathLiteral.
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.IngressPathLiteral getIngressPathLiteral() {
if (ingressPathLiteralBuilder_ == null) {
if (valueCase_ == 1) {
return (xyz.block.ftl.v1.schema.IngressPathLiteral) value_;
}
return xyz.block.ftl.v1.schema.IngressPathLiteral.getDefaultInstance();
} else {
if (valueCase_ == 1) {
return ingressPathLiteralBuilder_.getMessage();
}
return xyz.block.ftl.v1.schema.IngressPathLiteral.getDefaultInstance();
}
}
/**
* .xyz.block.ftl.v1.schema.IngressPathLiteral ingress_path_literal = 1;
*/
public Builder setIngressPathLiteral(xyz.block.ftl.v1.schema.IngressPathLiteral value) {
if (ingressPathLiteralBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
ingressPathLiteralBuilder_.setMessage(value);
}
valueCase_ = 1;
return this;
}
/**
* .xyz.block.ftl.v1.schema.IngressPathLiteral ingress_path_literal = 1;
*/
public Builder setIngressPathLiteral(
xyz.block.ftl.v1.schema.IngressPathLiteral.Builder builderForValue) {
if (ingressPathLiteralBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
ingressPathLiteralBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 1;
return this;
}
/**
* .xyz.block.ftl.v1.schema.IngressPathLiteral ingress_path_literal = 1;
*/
public Builder mergeIngressPathLiteral(xyz.block.ftl.v1.schema.IngressPathLiteral value) {
if (ingressPathLiteralBuilder_ == null) {
if (valueCase_ == 1 &&
value_ != xyz.block.ftl.v1.schema.IngressPathLiteral.getDefaultInstance()) {
value_ = xyz.block.ftl.v1.schema.IngressPathLiteral.newBuilder((xyz.block.ftl.v1.schema.IngressPathLiteral) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 1) {
ingressPathLiteralBuilder_.mergeFrom(value);
} else {
ingressPathLiteralBuilder_.setMessage(value);
}
}
valueCase_ = 1;
return this;
}
/**
* .xyz.block.ftl.v1.schema.IngressPathLiteral ingress_path_literal = 1;
*/
public Builder clearIngressPathLiteral() {
if (ingressPathLiteralBuilder_ == null) {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
}
ingressPathLiteralBuilder_.clear();
}
return this;
}
/**
* .xyz.block.ftl.v1.schema.IngressPathLiteral ingress_path_literal = 1;
*/
public xyz.block.ftl.v1.schema.IngressPathLiteral.Builder getIngressPathLiteralBuilder() {
return getIngressPathLiteralFieldBuilder().getBuilder();
}
/**
* .xyz.block.ftl.v1.schema.IngressPathLiteral ingress_path_literal = 1;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.IngressPathLiteralOrBuilder getIngressPathLiteralOrBuilder() {
if ((valueCase_ == 1) && (ingressPathLiteralBuilder_ != null)) {
return ingressPathLiteralBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 1) {
return (xyz.block.ftl.v1.schema.IngressPathLiteral) value_;
}
return xyz.block.ftl.v1.schema.IngressPathLiteral.getDefaultInstance();
}
}
/**
* .xyz.block.ftl.v1.schema.IngressPathLiteral ingress_path_literal = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.IngressPathLiteral, xyz.block.ftl.v1.schema.IngressPathLiteral.Builder, xyz.block.ftl.v1.schema.IngressPathLiteralOrBuilder>
getIngressPathLiteralFieldBuilder() {
if (ingressPathLiteralBuilder_ == null) {
if (!(valueCase_ == 1)) {
value_ = xyz.block.ftl.v1.schema.IngressPathLiteral.getDefaultInstance();
}
ingressPathLiteralBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.IngressPathLiteral, xyz.block.ftl.v1.schema.IngressPathLiteral.Builder, xyz.block.ftl.v1.schema.IngressPathLiteralOrBuilder>(
(xyz.block.ftl.v1.schema.IngressPathLiteral) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 1;
onChanged();
return ingressPathLiteralBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.IngressPathParameter, xyz.block.ftl.v1.schema.IngressPathParameter.Builder, xyz.block.ftl.v1.schema.IngressPathParameterOrBuilder> ingressPathParameterBuilder_;
/**
* .xyz.block.ftl.v1.schema.IngressPathParameter ingress_path_parameter = 2;
* @return Whether the ingressPathParameter field is set.
*/
@java.lang.Override
public boolean hasIngressPathParameter() {
return valueCase_ == 2;
}
/**
* .xyz.block.ftl.v1.schema.IngressPathParameter ingress_path_parameter = 2;
* @return The ingressPathParameter.
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.IngressPathParameter getIngressPathParameter() {
if (ingressPathParameterBuilder_ == null) {
if (valueCase_ == 2) {
return (xyz.block.ftl.v1.schema.IngressPathParameter) value_;
}
return xyz.block.ftl.v1.schema.IngressPathParameter.getDefaultInstance();
} else {
if (valueCase_ == 2) {
return ingressPathParameterBuilder_.getMessage();
}
return xyz.block.ftl.v1.schema.IngressPathParameter.getDefaultInstance();
}
}
/**
* .xyz.block.ftl.v1.schema.IngressPathParameter ingress_path_parameter = 2;
*/
public Builder setIngressPathParameter(xyz.block.ftl.v1.schema.IngressPathParameter value) {
if (ingressPathParameterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
ingressPathParameterBuilder_.setMessage(value);
}
valueCase_ = 2;
return this;
}
/**
* .xyz.block.ftl.v1.schema.IngressPathParameter ingress_path_parameter = 2;
*/
public Builder setIngressPathParameter(
xyz.block.ftl.v1.schema.IngressPathParameter.Builder builderForValue) {
if (ingressPathParameterBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
ingressPathParameterBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 2;
return this;
}
/**
* .xyz.block.ftl.v1.schema.IngressPathParameter ingress_path_parameter = 2;
*/
public Builder mergeIngressPathParameter(xyz.block.ftl.v1.schema.IngressPathParameter value) {
if (ingressPathParameterBuilder_ == null) {
if (valueCase_ == 2 &&
value_ != xyz.block.ftl.v1.schema.IngressPathParameter.getDefaultInstance()) {
value_ = xyz.block.ftl.v1.schema.IngressPathParameter.newBuilder((xyz.block.ftl.v1.schema.IngressPathParameter) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 2) {
ingressPathParameterBuilder_.mergeFrom(value);
} else {
ingressPathParameterBuilder_.setMessage(value);
}
}
valueCase_ = 2;
return this;
}
/**
* .xyz.block.ftl.v1.schema.IngressPathParameter ingress_path_parameter = 2;
*/
public Builder clearIngressPathParameter() {
if (ingressPathParameterBuilder_ == null) {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
}
ingressPathParameterBuilder_.clear();
}
return this;
}
/**
* .xyz.block.ftl.v1.schema.IngressPathParameter ingress_path_parameter = 2;
*/
public xyz.block.ftl.v1.schema.IngressPathParameter.Builder getIngressPathParameterBuilder() {
return getIngressPathParameterFieldBuilder().getBuilder();
}
/**
* .xyz.block.ftl.v1.schema.IngressPathParameter ingress_path_parameter = 2;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.IngressPathParameterOrBuilder getIngressPathParameterOrBuilder() {
if ((valueCase_ == 2) && (ingressPathParameterBuilder_ != null)) {
return ingressPathParameterBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 2) {
return (xyz.block.ftl.v1.schema.IngressPathParameter) value_;
}
return xyz.block.ftl.v1.schema.IngressPathParameter.getDefaultInstance();
}
}
/**
* .xyz.block.ftl.v1.schema.IngressPathParameter ingress_path_parameter = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.IngressPathParameter, xyz.block.ftl.v1.schema.IngressPathParameter.Builder, xyz.block.ftl.v1.schema.IngressPathParameterOrBuilder>
getIngressPathParameterFieldBuilder() {
if (ingressPathParameterBuilder_ == null) {
if (!(valueCase_ == 2)) {
value_ = xyz.block.ftl.v1.schema.IngressPathParameter.getDefaultInstance();
}
ingressPathParameterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.IngressPathParameter, xyz.block.ftl.v1.schema.IngressPathParameter.Builder, xyz.block.ftl.v1.schema.IngressPathParameterOrBuilder>(
(xyz.block.ftl.v1.schema.IngressPathParameter) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 2;
onChanged();
return ingressPathParameterBuilder_;
}
@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:xyz.block.ftl.v1.schema.IngressPathComponent)
}
// @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.schema.IngressPathComponent)
private static final xyz.block.ftl.v1.schema.IngressPathComponent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xyz.block.ftl.v1.schema.IngressPathComponent();
}
public static xyz.block.ftl.v1.schema.IngressPathComponent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IngressPathComponent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public xyz.block.ftl.v1.schema.IngressPathComponent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy