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.
* The name of the resource this is a trigger for.
*
*
* string name = 1 [(.validate.rules) = { ... }
* @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;
}
}
/**
*
* The name of the resource this is a trigger for.
*
*
* string name = 1 [(.validate.rules) = { ... }
* @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;
onChanged();
return this;
}
/**
*
* The name of the resource this is a trigger for.
*
*
* string name = 1 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* The name of the resource this is a trigger for.
*
*
* string name = 1 [(.validate.rules) = { ... }
* @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;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger, io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger.Builder, io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTriggerOrBuilder> thresholdBuilder_;
/**
* .envoy.config.overload.v2alpha.ThresholdTrigger threshold = 2;
* @return Whether the threshold field is set.
*/
@java.lang.Override
public boolean hasThreshold() {
return triggerOneofCase_ == 2;
}
/**
* .envoy.config.overload.v2alpha.ThresholdTrigger threshold = 2;
* @return The threshold.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger getThreshold() {
if (thresholdBuilder_ == null) {
if (triggerOneofCase_ == 2) {
return (io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger) triggerOneof_;
}
return io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger.getDefaultInstance();
} else {
if (triggerOneofCase_ == 2) {
return thresholdBuilder_.getMessage();
}
return io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger.getDefaultInstance();
}
}
/**
* .envoy.config.overload.v2alpha.ThresholdTrigger threshold = 2;
*/
public Builder setThreshold(io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger value) {
if (thresholdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
triggerOneof_ = value;
onChanged();
} else {
thresholdBuilder_.setMessage(value);
}
triggerOneofCase_ = 2;
return this;
}
/**
* .envoy.config.overload.v2alpha.ThresholdTrigger threshold = 2;
*/
public Builder setThreshold(
io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger.Builder builderForValue) {
if (thresholdBuilder_ == null) {
triggerOneof_ = builderForValue.build();
onChanged();
} else {
thresholdBuilder_.setMessage(builderForValue.build());
}
triggerOneofCase_ = 2;
return this;
}
/**
* .envoy.config.overload.v2alpha.ThresholdTrigger threshold = 2;
*/
public Builder mergeThreshold(io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger value) {
if (thresholdBuilder_ == null) {
if (triggerOneofCase_ == 2 &&
triggerOneof_ != io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger.getDefaultInstance()) {
triggerOneof_ = io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger.newBuilder((io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger) triggerOneof_)
.mergeFrom(value).buildPartial();
} else {
triggerOneof_ = value;
}
onChanged();
} else {
if (triggerOneofCase_ == 2) {
thresholdBuilder_.mergeFrom(value);
} else {
thresholdBuilder_.setMessage(value);
}
}
triggerOneofCase_ = 2;
return this;
}
/**
* .envoy.config.overload.v2alpha.ThresholdTrigger threshold = 2;
*/
public Builder clearThreshold() {
if (thresholdBuilder_ == null) {
if (triggerOneofCase_ == 2) {
triggerOneofCase_ = 0;
triggerOneof_ = null;
onChanged();
}
} else {
if (triggerOneofCase_ == 2) {
triggerOneofCase_ = 0;
triggerOneof_ = null;
}
thresholdBuilder_.clear();
}
return this;
}
/**
* .envoy.config.overload.v2alpha.ThresholdTrigger threshold = 2;
*/
public io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger.Builder getThresholdBuilder() {
return getThresholdFieldBuilder().getBuilder();
}
/**
* .envoy.config.overload.v2alpha.ThresholdTrigger threshold = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTriggerOrBuilder getThresholdOrBuilder() {
if ((triggerOneofCase_ == 2) && (thresholdBuilder_ != null)) {
return thresholdBuilder_.getMessageOrBuilder();
} else {
if (triggerOneofCase_ == 2) {
return (io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger) triggerOneof_;
}
return io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger.getDefaultInstance();
}
}
/**
* .envoy.config.overload.v2alpha.ThresholdTrigger threshold = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger, io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger.Builder, io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTriggerOrBuilder>
getThresholdFieldBuilder() {
if (thresholdBuilder_ == null) {
if (!(triggerOneofCase_ == 2)) {
triggerOneof_ = io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger.getDefaultInstance();
}
thresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger, io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger.Builder, io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTriggerOrBuilder>(
(io.envoyproxy.envoy.config.overload.v2alpha.ThresholdTrigger) triggerOneof_,
getParentForChildren(),
isClean());
triggerOneof_ = null;
}
triggerOneofCase_ = 2;
onChanged();;
return thresholdBuilder_;
}
@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:envoy.config.overload.v2alpha.Trigger)
}
// @@protoc_insertion_point(class_scope:envoy.config.overload.v2alpha.Trigger)
private static final io.envoyproxy.envoy.config.overload.v2alpha.Trigger DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.overload.v2alpha.Trigger();
}
public static io.envoyproxy.envoy.config.overload.v2alpha.Trigger getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Trigger parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Trigger(input, extensionRegistry);
}
};
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.envoyproxy.envoy.config.overload.v2alpha.Trigger getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}