
io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/extensions/watchdog/profile_action/v3/profile_action.proto
// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.extensions.watchdog.profile_action.v3;
/**
*
* Configuration for the profile watchdog action.
*
*
* Protobuf type {@code envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig}
*/
public final class ProfileActionConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig)
ProfileActionConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProfileActionConfig.newBuilder() to construct.
private ProfileActionConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProfileActionConfig() {
profilePath_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProfileActionConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionProto.internal_static_envoy_extensions_watchdog_profile_action_v3_ProfileActionConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionProto.internal_static_envoy_extensions_watchdog_profile_action_v3_ProfileActionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig.class, io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig.Builder.class);
}
private int bitField0_;
public static final int PROFILE_DURATION_FIELD_NUMBER = 1;
private com.google.protobuf.Duration profileDuration_;
/**
*
* How long the profile should last. If not set defaults to 5 seconds.
*
*
* .google.protobuf.Duration profile_duration = 1;
* @return Whether the profileDuration field is set.
*/
@java.lang.Override
public boolean hasProfileDuration() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* How long the profile should last. If not set defaults to 5 seconds.
*
*
* .google.protobuf.Duration profile_duration = 1;
* @return The profileDuration.
*/
@java.lang.Override
public com.google.protobuf.Duration getProfileDuration() {
return profileDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : profileDuration_;
}
/**
*
* How long the profile should last. If not set defaults to 5 seconds.
*
*
* .google.protobuf.Duration profile_duration = 1;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getProfileDurationOrBuilder() {
return profileDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : profileDuration_;
}
public static final int PROFILE_PATH_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object profilePath_ = "";
/**
*
* File path to the directory to output profiles.
*
*
* string profile_path = 2 [(.validate.rules) = { ... }
* @return The profilePath.
*/
@java.lang.Override
public java.lang.String getProfilePath() {
java.lang.Object ref = profilePath_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
profilePath_ = s;
return s;
}
}
/**
*
* File path to the directory to output profiles.
*
*
* string profile_path = 2 [(.validate.rules) = { ... }
* @return The bytes for profilePath.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getProfilePathBytes() {
java.lang.Object ref = profilePath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
profilePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAX_PROFILES_FIELD_NUMBER = 3;
private long maxProfiles_ = 0L;
/**
*
* Limits the max number of profiles that can be generated by this action
* over its lifetime to avoid filling the disk.
* If not set (i.e. it's 0), a default of 10 will be used.
*
*
* uint64 max_profiles = 3;
* @return The maxProfiles.
*/
@java.lang.Override
public long getMaxProfiles() {
return maxProfiles_;
}
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, getProfileDuration());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(profilePath_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, profilePath_);
}
if (maxProfiles_ != 0L) {
output.writeUInt64(3, maxProfiles_);
}
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, getProfileDuration());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(profilePath_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, profilePath_);
}
if (maxProfiles_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, maxProfiles_);
}
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.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig other = (io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig) obj;
if (hasProfileDuration() != other.hasProfileDuration()) return false;
if (hasProfileDuration()) {
if (!getProfileDuration()
.equals(other.getProfileDuration())) return false;
}
if (!getProfilePath()
.equals(other.getProfilePath())) return false;
if (getMaxProfiles()
!= other.getMaxProfiles()) 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 (hasProfileDuration()) {
hash = (37 * hash) + PROFILE_DURATION_FIELD_NUMBER;
hash = (53 * hash) + getProfileDuration().hashCode();
}
hash = (37 * hash) + PROFILE_PATH_FIELD_NUMBER;
hash = (53 * hash) + getProfilePath().hashCode();
hash = (37 * hash) + MAX_PROFILES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxProfiles());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig 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.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig 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.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig 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.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig 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;
}
/**
*
* Configuration for the profile watchdog action.
*
*
* Protobuf type {@code envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig)
io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionProto.internal_static_envoy_extensions_watchdog_profile_action_v3_ProfileActionConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionProto.internal_static_envoy_extensions_watchdog_profile_action_v3_ProfileActionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig.class, io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getProfileDurationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
profileDuration_ = null;
if (profileDurationBuilder_ != null) {
profileDurationBuilder_.dispose();
profileDurationBuilder_ = null;
}
profilePath_ = "";
maxProfiles_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionProto.internal_static_envoy_extensions_watchdog_profile_action_v3_ProfileActionConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig build() {
io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig buildPartial() {
io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig result = new io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.profileDuration_ = profileDurationBuilder_ == null
? profileDuration_
: profileDurationBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.profilePath_ = profilePath_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.maxProfiles_ = maxProfiles_;
}
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 io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig) {
return mergeFrom((io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig other) {
if (other == io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig.getDefaultInstance()) return this;
if (other.hasProfileDuration()) {
mergeProfileDuration(other.getProfileDuration());
}
if (!other.getProfilePath().isEmpty()) {
profilePath_ = other.profilePath_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getMaxProfiles() != 0L) {
setMaxProfiles(other.getMaxProfiles());
}
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(
getProfileDurationFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
profilePath_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
maxProfiles_ = input.readUInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.Duration profileDuration_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> profileDurationBuilder_;
/**
*
* How long the profile should last. If not set defaults to 5 seconds.
*
*
* .google.protobuf.Duration profile_duration = 1;
* @return Whether the profileDuration field is set.
*/
public boolean hasProfileDuration() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* How long the profile should last. If not set defaults to 5 seconds.
*
*
* .google.protobuf.Duration profile_duration = 1;
* @return The profileDuration.
*/
public com.google.protobuf.Duration getProfileDuration() {
if (profileDurationBuilder_ == null) {
return profileDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : profileDuration_;
} else {
return profileDurationBuilder_.getMessage();
}
}
/**
*
* How long the profile should last. If not set defaults to 5 seconds.
*
*
* .google.protobuf.Duration profile_duration = 1;
*/
public Builder setProfileDuration(com.google.protobuf.Duration value) {
if (profileDurationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
profileDuration_ = value;
} else {
profileDurationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* How long the profile should last. If not set defaults to 5 seconds.
*
*
* .google.protobuf.Duration profile_duration = 1;
*/
public Builder setProfileDuration(
com.google.protobuf.Duration.Builder builderForValue) {
if (profileDurationBuilder_ == null) {
profileDuration_ = builderForValue.build();
} else {
profileDurationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* How long the profile should last. If not set defaults to 5 seconds.
*
*
* .google.protobuf.Duration profile_duration = 1;
*/
public Builder mergeProfileDuration(com.google.protobuf.Duration value) {
if (profileDurationBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
profileDuration_ != null &&
profileDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
getProfileDurationBuilder().mergeFrom(value);
} else {
profileDuration_ = value;
}
} else {
profileDurationBuilder_.mergeFrom(value);
}
if (profileDuration_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* How long the profile should last. If not set defaults to 5 seconds.
*
*
* .google.protobuf.Duration profile_duration = 1;
*/
public Builder clearProfileDuration() {
bitField0_ = (bitField0_ & ~0x00000001);
profileDuration_ = null;
if (profileDurationBuilder_ != null) {
profileDurationBuilder_.dispose();
profileDurationBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* How long the profile should last. If not set defaults to 5 seconds.
*
*
* .google.protobuf.Duration profile_duration = 1;
*/
public com.google.protobuf.Duration.Builder getProfileDurationBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getProfileDurationFieldBuilder().getBuilder();
}
/**
*
* How long the profile should last. If not set defaults to 5 seconds.
*
*
* .google.protobuf.Duration profile_duration = 1;
*/
public com.google.protobuf.DurationOrBuilder getProfileDurationOrBuilder() {
if (profileDurationBuilder_ != null) {
return profileDurationBuilder_.getMessageOrBuilder();
} else {
return profileDuration_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : profileDuration_;
}
}
/**
*
* How long the profile should last. If not set defaults to 5 seconds.
*
*
* .google.protobuf.Duration profile_duration = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getProfileDurationFieldBuilder() {
if (profileDurationBuilder_ == null) {
profileDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getProfileDuration(),
getParentForChildren(),
isClean());
profileDuration_ = null;
}
return profileDurationBuilder_;
}
private java.lang.Object profilePath_ = "";
/**
*
* File path to the directory to output profiles.
*
*
* string profile_path = 2 [(.validate.rules) = { ... }
* @return The profilePath.
*/
public java.lang.String getProfilePath() {
java.lang.Object ref = profilePath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
profilePath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* File path to the directory to output profiles.
*
*
* string profile_path = 2 [(.validate.rules) = { ... }
* @return The bytes for profilePath.
*/
public com.google.protobuf.ByteString
getProfilePathBytes() {
java.lang.Object ref = profilePath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
profilePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* File path to the directory to output profiles.
*
*
* string profile_path = 2 [(.validate.rules) = { ... }
* @param value The profilePath to set.
* @return This builder for chaining.
*/
public Builder setProfilePath(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
profilePath_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* File path to the directory to output profiles.
*
*
* string profile_path = 2 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearProfilePath() {
profilePath_ = getDefaultInstance().getProfilePath();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* File path to the directory to output profiles.
*
*
* string profile_path = 2 [(.validate.rules) = { ... }
* @param value The bytes for profilePath to set.
* @return This builder for chaining.
*/
public Builder setProfilePathBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
profilePath_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private long maxProfiles_ ;
/**
*
* Limits the max number of profiles that can be generated by this action
* over its lifetime to avoid filling the disk.
* If not set (i.e. it's 0), a default of 10 will be used.
*
*
* uint64 max_profiles = 3;
* @return The maxProfiles.
*/
@java.lang.Override
public long getMaxProfiles() {
return maxProfiles_;
}
/**
*
* Limits the max number of profiles that can be generated by this action
* over its lifetime to avoid filling the disk.
* If not set (i.e. it's 0), a default of 10 will be used.
*
*
* uint64 max_profiles = 3;
* @param value The maxProfiles to set.
* @return This builder for chaining.
*/
public Builder setMaxProfiles(long value) {
maxProfiles_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Limits the max number of profiles that can be generated by this action
* over its lifetime to avoid filling the disk.
* If not set (i.e. it's 0), a default of 10 will be used.
*
*
* uint64 max_profiles = 3;
* @return This builder for chaining.
*/
public Builder clearMaxProfiles() {
bitField0_ = (bitField0_ & ~0x00000004);
maxProfiles_ = 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:envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig)
}
// @@protoc_insertion_point(class_scope:envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig)
private static final io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig();
}
public static io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProfileActionConfig 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.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy