Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.stigg.sidecar.proto.v1.EntitlementFallback Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: stigg/sidecar/v1/sidecar.proto
package io.stigg.sidecar.proto.v1;
/** Protobuf type {@code stigg.sidecar.v1.EntitlementFallback} */
public final class EntitlementFallback extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:stigg.sidecar.v1.EntitlementFallback)
EntitlementFallbackOrBuilder {
private static final long serialVersionUID = 0L;
// Use EntitlementFallback.newBuilder() to construct.
private EntitlementFallback(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EntitlementFallback() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new EntitlementFallback();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.stigg.sidecar.proto.v1.SidecarProto
.internal_static_stigg_sidecar_v1_EntitlementFallback_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stigg.sidecar.proto.v1.SidecarProto
.internal_static_stigg_sidecar_v1_EntitlementFallback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stigg.sidecar.proto.v1.EntitlementFallback.class,
io.stigg.sidecar.proto.v1.EntitlementFallback.Builder.class);
}
private int fallbackCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object fallback_;
public enum FallbackCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
BOOLEAN(1),
NUMERIC(2),
METERED(3),
FALLBACK_NOT_SET(0);
private final int value;
private FallbackCase(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 FallbackCase valueOf(int value) {
return forNumber(value);
}
public static FallbackCase forNumber(int value) {
switch (value) {
case 1:
return BOOLEAN;
case 2:
return NUMERIC;
case 3:
return METERED;
case 0:
return FALLBACK_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public FallbackCase getFallbackCase() {
return FallbackCase.forNumber(fallbackCase_);
}
public static final int BOOLEAN_FIELD_NUMBER = 1;
/**
* .stigg.sidecar.v1.BooleanEntitlementFallback boolean = 1 [json_name = "boolean"];
*
* @return Whether the boolean field is set.
*/
@java.lang.Override
public boolean hasBoolean() {
return fallbackCase_ == 1;
}
/**
* .stigg.sidecar.v1.BooleanEntitlementFallback boolean = 1 [json_name = "boolean"];
*
* @return The boolean.
*/
@java.lang.Override
public io.stigg.sidecar.proto.v1.BooleanEntitlementFallback getBoolean() {
if (fallbackCase_ == 1) {
return (io.stigg.sidecar.proto.v1.BooleanEntitlementFallback) fallback_;
}
return io.stigg.sidecar.proto.v1.BooleanEntitlementFallback.getDefaultInstance();
}
/**
* .stigg.sidecar.v1.BooleanEntitlementFallback boolean = 1 [json_name = "boolean"];
*/
@java.lang.Override
public io.stigg.sidecar.proto.v1.BooleanEntitlementFallbackOrBuilder getBooleanOrBuilder() {
if (fallbackCase_ == 1) {
return (io.stigg.sidecar.proto.v1.BooleanEntitlementFallback) fallback_;
}
return io.stigg.sidecar.proto.v1.BooleanEntitlementFallback.getDefaultInstance();
}
public static final int NUMERIC_FIELD_NUMBER = 2;
/**
* .stigg.sidecar.v1.NumericEntitlementFallback numeric = 2 [json_name = "numeric"];
*
* @return Whether the numeric field is set.
*/
@java.lang.Override
public boolean hasNumeric() {
return fallbackCase_ == 2;
}
/**
* .stigg.sidecar.v1.NumericEntitlementFallback numeric = 2 [json_name = "numeric"];
*
* @return The numeric.
*/
@java.lang.Override
public io.stigg.sidecar.proto.v1.NumericEntitlementFallback getNumeric() {
if (fallbackCase_ == 2) {
return (io.stigg.sidecar.proto.v1.NumericEntitlementFallback) fallback_;
}
return io.stigg.sidecar.proto.v1.NumericEntitlementFallback.getDefaultInstance();
}
/**
* .stigg.sidecar.v1.NumericEntitlementFallback numeric = 2 [json_name = "numeric"];
*/
@java.lang.Override
public io.stigg.sidecar.proto.v1.NumericEntitlementFallbackOrBuilder getNumericOrBuilder() {
if (fallbackCase_ == 2) {
return (io.stigg.sidecar.proto.v1.NumericEntitlementFallback) fallback_;
}
return io.stigg.sidecar.proto.v1.NumericEntitlementFallback.getDefaultInstance();
}
public static final int METERED_FIELD_NUMBER = 3;
/**
* .stigg.sidecar.v1.MeteredEntitlementFallback metered = 3 [json_name = "metered"];
*
* @return Whether the metered field is set.
*/
@java.lang.Override
public boolean hasMetered() {
return fallbackCase_ == 3;
}
/**
* .stigg.sidecar.v1.MeteredEntitlementFallback metered = 3 [json_name = "metered"];
*
* @return The metered.
*/
@java.lang.Override
public io.stigg.sidecar.proto.v1.MeteredEntitlementFallback getMetered() {
if (fallbackCase_ == 3) {
return (io.stigg.sidecar.proto.v1.MeteredEntitlementFallback) fallback_;
}
return io.stigg.sidecar.proto.v1.MeteredEntitlementFallback.getDefaultInstance();
}
/**
* .stigg.sidecar.v1.MeteredEntitlementFallback metered = 3 [json_name = "metered"];
*/
@java.lang.Override
public io.stigg.sidecar.proto.v1.MeteredEntitlementFallbackOrBuilder getMeteredOrBuilder() {
if (fallbackCase_ == 3) {
return (io.stigg.sidecar.proto.v1.MeteredEntitlementFallback) fallback_;
}
return io.stigg.sidecar.proto.v1.MeteredEntitlementFallback.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 (fallbackCase_ == 1) {
output.writeMessage(1, (io.stigg.sidecar.proto.v1.BooleanEntitlementFallback) fallback_);
}
if (fallbackCase_ == 2) {
output.writeMessage(2, (io.stigg.sidecar.proto.v1.NumericEntitlementFallback) fallback_);
}
if (fallbackCase_ == 3) {
output.writeMessage(3, (io.stigg.sidecar.proto.v1.MeteredEntitlementFallback) fallback_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (fallbackCase_ == 1) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
1, (io.stigg.sidecar.proto.v1.BooleanEntitlementFallback) fallback_);
}
if (fallbackCase_ == 2) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, (io.stigg.sidecar.proto.v1.NumericEntitlementFallback) fallback_);
}
if (fallbackCase_ == 3) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
3, (io.stigg.sidecar.proto.v1.MeteredEntitlementFallback) fallback_);
}
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 io.stigg.sidecar.proto.v1.EntitlementFallback)) {
return super.equals(obj);
}
io.stigg.sidecar.proto.v1.EntitlementFallback other =
(io.stigg.sidecar.proto.v1.EntitlementFallback) obj;
if (!getFallbackCase().equals(other.getFallbackCase())) return false;
switch (fallbackCase_) {
case 1:
if (!getBoolean().equals(other.getBoolean())) return false;
break;
case 2:
if (!getNumeric().equals(other.getNumeric())) return false;
break;
case 3:
if (!getMetered().equals(other.getMetered())) 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 (fallbackCase_) {
case 1:
hash = (37 * hash) + BOOLEAN_FIELD_NUMBER;
hash = (53 * hash) + getBoolean().hashCode();
break;
case 2:
hash = (37 * hash) + NUMERIC_FIELD_NUMBER;
hash = (53 * hash) + getNumeric().hashCode();
break;
case 3:
hash = (37 * hash) + METERED_FIELD_NUMBER;
hash = (53 * hash) + getMetered().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stigg.sidecar.proto.v1.EntitlementFallback parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stigg.sidecar.proto.v1.EntitlementFallback parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stigg.sidecar.proto.v1.EntitlementFallback parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stigg.sidecar.proto.v1.EntitlementFallback parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stigg.sidecar.proto.v1.EntitlementFallback parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stigg.sidecar.proto.v1.EntitlementFallback parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stigg.sidecar.proto.v1.EntitlementFallback parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.stigg.sidecar.proto.v1.EntitlementFallback 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 io.stigg.sidecar.proto.v1.EntitlementFallback parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.stigg.sidecar.proto.v1.EntitlementFallback 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 io.stigg.sidecar.proto.v1.EntitlementFallback parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.stigg.sidecar.proto.v1.EntitlementFallback 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(io.stigg.sidecar.proto.v1.EntitlementFallback 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 stigg.sidecar.v1.EntitlementFallback} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:stigg.sidecar.v1.EntitlementFallback)
io.stigg.sidecar.proto.v1.EntitlementFallbackOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.stigg.sidecar.proto.v1.SidecarProto
.internal_static_stigg_sidecar_v1_EntitlementFallback_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stigg.sidecar.proto.v1.SidecarProto
.internal_static_stigg_sidecar_v1_EntitlementFallback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stigg.sidecar.proto.v1.EntitlementFallback.class,
io.stigg.sidecar.proto.v1.EntitlementFallback.Builder.class);
}
// Construct using io.stigg.sidecar.proto.v1.EntitlementFallback.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (booleanBuilder_ != null) {
booleanBuilder_.clear();
}
if (numericBuilder_ != null) {
numericBuilder_.clear();
}
if (meteredBuilder_ != null) {
meteredBuilder_.clear();
}
fallbackCase_ = 0;
fallback_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.stigg.sidecar.proto.v1.SidecarProto
.internal_static_stigg_sidecar_v1_EntitlementFallback_descriptor;
}
@java.lang.Override
public io.stigg.sidecar.proto.v1.EntitlementFallback getDefaultInstanceForType() {
return io.stigg.sidecar.proto.v1.EntitlementFallback.getDefaultInstance();
}
@java.lang.Override
public io.stigg.sidecar.proto.v1.EntitlementFallback build() {
io.stigg.sidecar.proto.v1.EntitlementFallback result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stigg.sidecar.proto.v1.EntitlementFallback buildPartial() {
io.stigg.sidecar.proto.v1.EntitlementFallback result =
new io.stigg.sidecar.proto.v1.EntitlementFallback(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.stigg.sidecar.proto.v1.EntitlementFallback result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.stigg.sidecar.proto.v1.EntitlementFallback result) {
result.fallbackCase_ = fallbackCase_;
result.fallback_ = this.fallback_;
if (fallbackCase_ == 1 && booleanBuilder_ != null) {
result.fallback_ = booleanBuilder_.build();
}
if (fallbackCase_ == 2 && numericBuilder_ != null) {
result.fallback_ = numericBuilder_.build();
}
if (fallbackCase_ == 3 && meteredBuilder_ != null) {
result.fallback_ = meteredBuilder_.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 io.stigg.sidecar.proto.v1.EntitlementFallback) {
return mergeFrom((io.stigg.sidecar.proto.v1.EntitlementFallback) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stigg.sidecar.proto.v1.EntitlementFallback other) {
if (other == io.stigg.sidecar.proto.v1.EntitlementFallback.getDefaultInstance()) return this;
switch (other.getFallbackCase()) {
case BOOLEAN:
{
mergeBoolean(other.getBoolean());
break;
}
case NUMERIC:
{
mergeNumeric(other.getNumeric());
break;
}
case METERED:
{
mergeMetered(other.getMetered());
break;
}
case FALLBACK_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(getBooleanFieldBuilder().getBuilder(), extensionRegistry);
fallbackCase_ = 1;
break;
} // case 10
case 18:
{
input.readMessage(getNumericFieldBuilder().getBuilder(), extensionRegistry);
fallbackCase_ = 2;
break;
} // case 18
case 26:
{
input.readMessage(getMeteredFieldBuilder().getBuilder(), extensionRegistry);
fallbackCase_ = 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 fallbackCase_ = 0;
private java.lang.Object fallback_;
public FallbackCase getFallbackCase() {
return FallbackCase.forNumber(fallbackCase_);
}
public Builder clearFallback() {
fallbackCase_ = 0;
fallback_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
io.stigg.sidecar.proto.v1.BooleanEntitlementFallback,
io.stigg.sidecar.proto.v1.BooleanEntitlementFallback.Builder,
io.stigg.sidecar.proto.v1.BooleanEntitlementFallbackOrBuilder>
booleanBuilder_;
/**
* .stigg.sidecar.v1.BooleanEntitlementFallback boolean = 1 [json_name = "boolean"];
*
*
* @return Whether the boolean field is set.
*/
@java.lang.Override
public boolean hasBoolean() {
return fallbackCase_ == 1;
}
/**
* .stigg.sidecar.v1.BooleanEntitlementFallback boolean = 1 [json_name = "boolean"];
*
*
* @return The boolean.
*/
@java.lang.Override
public io.stigg.sidecar.proto.v1.BooleanEntitlementFallback getBoolean() {
if (booleanBuilder_ == null) {
if (fallbackCase_ == 1) {
return (io.stigg.sidecar.proto.v1.BooleanEntitlementFallback) fallback_;
}
return io.stigg.sidecar.proto.v1.BooleanEntitlementFallback.getDefaultInstance();
} else {
if (fallbackCase_ == 1) {
return booleanBuilder_.getMessage();
}
return io.stigg.sidecar.proto.v1.BooleanEntitlementFallback.getDefaultInstance();
}
}
/**
* .stigg.sidecar.v1.BooleanEntitlementFallback boolean = 1 [json_name = "boolean"];
*
*/
public Builder setBoolean(io.stigg.sidecar.proto.v1.BooleanEntitlementFallback value) {
if (booleanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fallback_ = value;
onChanged();
} else {
booleanBuilder_.setMessage(value);
}
fallbackCase_ = 1;
return this;
}
/**
* .stigg.sidecar.v1.BooleanEntitlementFallback boolean = 1 [json_name = "boolean"];
*
*/
public Builder setBoolean(
io.stigg.sidecar.proto.v1.BooleanEntitlementFallback.Builder builderForValue) {
if (booleanBuilder_ == null) {
fallback_ = builderForValue.build();
onChanged();
} else {
booleanBuilder_.setMessage(builderForValue.build());
}
fallbackCase_ = 1;
return this;
}
/**
* .stigg.sidecar.v1.BooleanEntitlementFallback boolean = 1 [json_name = "boolean"];
*
*/
public Builder mergeBoolean(io.stigg.sidecar.proto.v1.BooleanEntitlementFallback value) {
if (booleanBuilder_ == null) {
if (fallbackCase_ == 1
&& fallback_
!= io.stigg.sidecar.proto.v1.BooleanEntitlementFallback.getDefaultInstance()) {
fallback_ =
io.stigg.sidecar.proto.v1.BooleanEntitlementFallback.newBuilder(
(io.stigg.sidecar.proto.v1.BooleanEntitlementFallback) fallback_)
.mergeFrom(value)
.buildPartial();
} else {
fallback_ = value;
}
onChanged();
} else {
if (fallbackCase_ == 1) {
booleanBuilder_.mergeFrom(value);
} else {
booleanBuilder_.setMessage(value);
}
}
fallbackCase_ = 1;
return this;
}
/**
* .stigg.sidecar.v1.BooleanEntitlementFallback boolean = 1 [json_name = "boolean"];
*
*/
public Builder clearBoolean() {
if (booleanBuilder_ == null) {
if (fallbackCase_ == 1) {
fallbackCase_ = 0;
fallback_ = null;
onChanged();
}
} else {
if (fallbackCase_ == 1) {
fallbackCase_ = 0;
fallback_ = null;
}
booleanBuilder_.clear();
}
return this;
}
/**
* .stigg.sidecar.v1.BooleanEntitlementFallback boolean = 1 [json_name = "boolean"];
*
*/
public io.stigg.sidecar.proto.v1.BooleanEntitlementFallback.Builder getBooleanBuilder() {
return getBooleanFieldBuilder().getBuilder();
}
/**
* .stigg.sidecar.v1.BooleanEntitlementFallback boolean = 1 [json_name = "boolean"];
*
*/
@java.lang.Override
public io.stigg.sidecar.proto.v1.BooleanEntitlementFallbackOrBuilder getBooleanOrBuilder() {
if ((fallbackCase_ == 1) && (booleanBuilder_ != null)) {
return booleanBuilder_.getMessageOrBuilder();
} else {
if (fallbackCase_ == 1) {
return (io.stigg.sidecar.proto.v1.BooleanEntitlementFallback) fallback_;
}
return io.stigg.sidecar.proto.v1.BooleanEntitlementFallback.getDefaultInstance();
}
}
/**
* .stigg.sidecar.v1.BooleanEntitlementFallback boolean = 1 [json_name = "boolean"];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stigg.sidecar.proto.v1.BooleanEntitlementFallback,
io.stigg.sidecar.proto.v1.BooleanEntitlementFallback.Builder,
io.stigg.sidecar.proto.v1.BooleanEntitlementFallbackOrBuilder>
getBooleanFieldBuilder() {
if (booleanBuilder_ == null) {
if (!(fallbackCase_ == 1)) {
fallback_ = io.stigg.sidecar.proto.v1.BooleanEntitlementFallback.getDefaultInstance();
}
booleanBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.stigg.sidecar.proto.v1.BooleanEntitlementFallback,
io.stigg.sidecar.proto.v1.BooleanEntitlementFallback.Builder,
io.stigg.sidecar.proto.v1.BooleanEntitlementFallbackOrBuilder>(
(io.stigg.sidecar.proto.v1.BooleanEntitlementFallback) fallback_,
getParentForChildren(),
isClean());
fallback_ = null;
}
fallbackCase_ = 1;
onChanged();
return booleanBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stigg.sidecar.proto.v1.NumericEntitlementFallback,
io.stigg.sidecar.proto.v1.NumericEntitlementFallback.Builder,
io.stigg.sidecar.proto.v1.NumericEntitlementFallbackOrBuilder>
numericBuilder_;
/**
* .stigg.sidecar.v1.NumericEntitlementFallback numeric = 2 [json_name = "numeric"];
*
*
* @return Whether the numeric field is set.
*/
@java.lang.Override
public boolean hasNumeric() {
return fallbackCase_ == 2;
}
/**
* .stigg.sidecar.v1.NumericEntitlementFallback numeric = 2 [json_name = "numeric"];
*
*
* @return The numeric.
*/
@java.lang.Override
public io.stigg.sidecar.proto.v1.NumericEntitlementFallback getNumeric() {
if (numericBuilder_ == null) {
if (fallbackCase_ == 2) {
return (io.stigg.sidecar.proto.v1.NumericEntitlementFallback) fallback_;
}
return io.stigg.sidecar.proto.v1.NumericEntitlementFallback.getDefaultInstance();
} else {
if (fallbackCase_ == 2) {
return numericBuilder_.getMessage();
}
return io.stigg.sidecar.proto.v1.NumericEntitlementFallback.getDefaultInstance();
}
}
/**
* .stigg.sidecar.v1.NumericEntitlementFallback numeric = 2 [json_name = "numeric"];
*
*/
public Builder setNumeric(io.stigg.sidecar.proto.v1.NumericEntitlementFallback value) {
if (numericBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fallback_ = value;
onChanged();
} else {
numericBuilder_.setMessage(value);
}
fallbackCase_ = 2;
return this;
}
/**
* .stigg.sidecar.v1.NumericEntitlementFallback numeric = 2 [json_name = "numeric"];
*
*/
public Builder setNumeric(
io.stigg.sidecar.proto.v1.NumericEntitlementFallback.Builder builderForValue) {
if (numericBuilder_ == null) {
fallback_ = builderForValue.build();
onChanged();
} else {
numericBuilder_.setMessage(builderForValue.build());
}
fallbackCase_ = 2;
return this;
}
/**
* .stigg.sidecar.v1.NumericEntitlementFallback numeric = 2 [json_name = "numeric"];
*
*/
public Builder mergeNumeric(io.stigg.sidecar.proto.v1.NumericEntitlementFallback value) {
if (numericBuilder_ == null) {
if (fallbackCase_ == 2
&& fallback_
!= io.stigg.sidecar.proto.v1.NumericEntitlementFallback.getDefaultInstance()) {
fallback_ =
io.stigg.sidecar.proto.v1.NumericEntitlementFallback.newBuilder(
(io.stigg.sidecar.proto.v1.NumericEntitlementFallback) fallback_)
.mergeFrom(value)
.buildPartial();
} else {
fallback_ = value;
}
onChanged();
} else {
if (fallbackCase_ == 2) {
numericBuilder_.mergeFrom(value);
} else {
numericBuilder_.setMessage(value);
}
}
fallbackCase_ = 2;
return this;
}
/**
* .stigg.sidecar.v1.NumericEntitlementFallback numeric = 2 [json_name = "numeric"];
*
*/
public Builder clearNumeric() {
if (numericBuilder_ == null) {
if (fallbackCase_ == 2) {
fallbackCase_ = 0;
fallback_ = null;
onChanged();
}
} else {
if (fallbackCase_ == 2) {
fallbackCase_ = 0;
fallback_ = null;
}
numericBuilder_.clear();
}
return this;
}
/**
* .stigg.sidecar.v1.NumericEntitlementFallback numeric = 2 [json_name = "numeric"];
*
*/
public io.stigg.sidecar.proto.v1.NumericEntitlementFallback.Builder getNumericBuilder() {
return getNumericFieldBuilder().getBuilder();
}
/**
* .stigg.sidecar.v1.NumericEntitlementFallback numeric = 2 [json_name = "numeric"];
*
*/
@java.lang.Override
public io.stigg.sidecar.proto.v1.NumericEntitlementFallbackOrBuilder getNumericOrBuilder() {
if ((fallbackCase_ == 2) && (numericBuilder_ != null)) {
return numericBuilder_.getMessageOrBuilder();
} else {
if (fallbackCase_ == 2) {
return (io.stigg.sidecar.proto.v1.NumericEntitlementFallback) fallback_;
}
return io.stigg.sidecar.proto.v1.NumericEntitlementFallback.getDefaultInstance();
}
}
/**
* .stigg.sidecar.v1.NumericEntitlementFallback numeric = 2 [json_name = "numeric"];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stigg.sidecar.proto.v1.NumericEntitlementFallback,
io.stigg.sidecar.proto.v1.NumericEntitlementFallback.Builder,
io.stigg.sidecar.proto.v1.NumericEntitlementFallbackOrBuilder>
getNumericFieldBuilder() {
if (numericBuilder_ == null) {
if (!(fallbackCase_ == 2)) {
fallback_ = io.stigg.sidecar.proto.v1.NumericEntitlementFallback.getDefaultInstance();
}
numericBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.stigg.sidecar.proto.v1.NumericEntitlementFallback,
io.stigg.sidecar.proto.v1.NumericEntitlementFallback.Builder,
io.stigg.sidecar.proto.v1.NumericEntitlementFallbackOrBuilder>(
(io.stigg.sidecar.proto.v1.NumericEntitlementFallback) fallback_,
getParentForChildren(),
isClean());
fallback_ = null;
}
fallbackCase_ = 2;
onChanged();
return numericBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.stigg.sidecar.proto.v1.MeteredEntitlementFallback,
io.stigg.sidecar.proto.v1.MeteredEntitlementFallback.Builder,
io.stigg.sidecar.proto.v1.MeteredEntitlementFallbackOrBuilder>
meteredBuilder_;
/**
* .stigg.sidecar.v1.MeteredEntitlementFallback metered = 3 [json_name = "metered"];
*
*
* @return Whether the metered field is set.
*/
@java.lang.Override
public boolean hasMetered() {
return fallbackCase_ == 3;
}
/**
* .stigg.sidecar.v1.MeteredEntitlementFallback metered = 3 [json_name = "metered"];
*
*
* @return The metered.
*/
@java.lang.Override
public io.stigg.sidecar.proto.v1.MeteredEntitlementFallback getMetered() {
if (meteredBuilder_ == null) {
if (fallbackCase_ == 3) {
return (io.stigg.sidecar.proto.v1.MeteredEntitlementFallback) fallback_;
}
return io.stigg.sidecar.proto.v1.MeteredEntitlementFallback.getDefaultInstance();
} else {
if (fallbackCase_ == 3) {
return meteredBuilder_.getMessage();
}
return io.stigg.sidecar.proto.v1.MeteredEntitlementFallback.getDefaultInstance();
}
}
/**
* .stigg.sidecar.v1.MeteredEntitlementFallback metered = 3 [json_name = "metered"];
*
*/
public Builder setMetered(io.stigg.sidecar.proto.v1.MeteredEntitlementFallback value) {
if (meteredBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fallback_ = value;
onChanged();
} else {
meteredBuilder_.setMessage(value);
}
fallbackCase_ = 3;
return this;
}
/**
* .stigg.sidecar.v1.MeteredEntitlementFallback metered = 3 [json_name = "metered"];
*
*/
public Builder setMetered(
io.stigg.sidecar.proto.v1.MeteredEntitlementFallback.Builder builderForValue) {
if (meteredBuilder_ == null) {
fallback_ = builderForValue.build();
onChanged();
} else {
meteredBuilder_.setMessage(builderForValue.build());
}
fallbackCase_ = 3;
return this;
}
/**
* .stigg.sidecar.v1.MeteredEntitlementFallback metered = 3 [json_name = "metered"];
*
*/
public Builder mergeMetered(io.stigg.sidecar.proto.v1.MeteredEntitlementFallback value) {
if (meteredBuilder_ == null) {
if (fallbackCase_ == 3
&& fallback_
!= io.stigg.sidecar.proto.v1.MeteredEntitlementFallback.getDefaultInstance()) {
fallback_ =
io.stigg.sidecar.proto.v1.MeteredEntitlementFallback.newBuilder(
(io.stigg.sidecar.proto.v1.MeteredEntitlementFallback) fallback_)
.mergeFrom(value)
.buildPartial();
} else {
fallback_ = value;
}
onChanged();
} else {
if (fallbackCase_ == 3) {
meteredBuilder_.mergeFrom(value);
} else {
meteredBuilder_.setMessage(value);
}
}
fallbackCase_ = 3;
return this;
}
/**
* .stigg.sidecar.v1.MeteredEntitlementFallback metered = 3 [json_name = "metered"];
*
*/
public Builder clearMetered() {
if (meteredBuilder_ == null) {
if (fallbackCase_ == 3) {
fallbackCase_ = 0;
fallback_ = null;
onChanged();
}
} else {
if (fallbackCase_ == 3) {
fallbackCase_ = 0;
fallback_ = null;
}
meteredBuilder_.clear();
}
return this;
}
/**
* .stigg.sidecar.v1.MeteredEntitlementFallback metered = 3 [json_name = "metered"];
*
*/
public io.stigg.sidecar.proto.v1.MeteredEntitlementFallback.Builder getMeteredBuilder() {
return getMeteredFieldBuilder().getBuilder();
}
/**
* .stigg.sidecar.v1.MeteredEntitlementFallback metered = 3 [json_name = "metered"];
*
*/
@java.lang.Override
public io.stigg.sidecar.proto.v1.MeteredEntitlementFallbackOrBuilder getMeteredOrBuilder() {
if ((fallbackCase_ == 3) && (meteredBuilder_ != null)) {
return meteredBuilder_.getMessageOrBuilder();
} else {
if (fallbackCase_ == 3) {
return (io.stigg.sidecar.proto.v1.MeteredEntitlementFallback) fallback_;
}
return io.stigg.sidecar.proto.v1.MeteredEntitlementFallback.getDefaultInstance();
}
}
/**
* .stigg.sidecar.v1.MeteredEntitlementFallback metered = 3 [json_name = "metered"];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.stigg.sidecar.proto.v1.MeteredEntitlementFallback,
io.stigg.sidecar.proto.v1.MeteredEntitlementFallback.Builder,
io.stigg.sidecar.proto.v1.MeteredEntitlementFallbackOrBuilder>
getMeteredFieldBuilder() {
if (meteredBuilder_ == null) {
if (!(fallbackCase_ == 3)) {
fallback_ = io.stigg.sidecar.proto.v1.MeteredEntitlementFallback.getDefaultInstance();
}
meteredBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.stigg.sidecar.proto.v1.MeteredEntitlementFallback,
io.stigg.sidecar.proto.v1.MeteredEntitlementFallback.Builder,
io.stigg.sidecar.proto.v1.MeteredEntitlementFallbackOrBuilder>(
(io.stigg.sidecar.proto.v1.MeteredEntitlementFallback) fallback_,
getParentForChildren(),
isClean());
fallback_ = null;
}
fallbackCase_ = 3;
onChanged();
return meteredBuilder_;
}
@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:stigg.sidecar.v1.EntitlementFallback)
}
// @@protoc_insertion_point(class_scope:stigg.sidecar.v1.EntitlementFallback)
private static final io.stigg.sidecar.proto.v1.EntitlementFallback DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stigg.sidecar.proto.v1.EntitlementFallback();
}
public static io.stigg.sidecar.proto.v1.EntitlementFallback getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EntitlementFallback 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 io.stigg.sidecar.proto.v1.EntitlementFallback getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}