All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/extensions/watchdog/profile_action/v3/profile_action.proto

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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProfileActionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.Duration.Builder subBuilder = null; if (profileDuration_ != null) { subBuilder = profileDuration_.toBuilder(); } profileDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(profileDuration_); profileDuration_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); profilePath_ = s; break; } case 24: { maxProfiles_ = input.readUInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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); } 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 profileDuration_ != null; } /** *
   * 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 getProfileDuration(); } public static final int PROFILE_PATH_FIELD_NUMBER = 2; 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_; /** *
   * 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 (profileDuration_ != null) { 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_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (profileDuration_ != null) { 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 += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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) { } } @java.lang.Override public Builder clear() { super.clear(); if (profileDurationBuilder_ == null) { profileDuration_ = null; } else { profileDuration_ = null; 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 (profileDurationBuilder_ == null) { result.profileDuration_ = profileDuration_; } else { result.profileDuration_ = profileDurationBuilder_.build(); } result.profilePath_ = profilePath_; result.maxProfiles_ = maxProfiles_; onBuilt(); return result; } @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_; onChanged(); } if (other.getMaxProfiles() != 0L) { setMaxProfiles(other.getMaxProfiles()); } this.mergeUnknownFields(other.unknownFields); 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 { io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.extensions.watchdog.profile_action.v3.ProfileActionConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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 profileDurationBuilder_ != null || profileDuration_ != null; } /** *
     * 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; onChanged(); } else { profileDurationBuilder_.setMessage(value); } 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(); onChanged(); } else { profileDurationBuilder_.setMessage(builderForValue.build()); } 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 (profileDuration_ != null) { profileDuration_ = com.google.protobuf.Duration.newBuilder(profileDuration_).mergeFrom(value).buildPartial(); } else { profileDuration_ = value; } onChanged(); } else { profileDurationBuilder_.mergeFrom(value); } return this; } /** *
     * How long the profile should last. If not set defaults to 5 seconds.
     * 
* * .google.protobuf.Duration profile_duration = 1; */ public Builder clearProfileDuration() { if (profileDurationBuilder_ == null) { profileDuration_ = null; onChanged(); } else { profileDuration_ = null; profileDurationBuilder_ = null; } 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() { 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; 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(); 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; 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; 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() { 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 { return new ProfileActionConfig(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.extensions.watchdog.profile_action.v3.ProfileActionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy