Class CommandAlert.ActionConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CommandAlert.ActionConfig.Builder>
com.google.protobuf.GeneratedMessage.Builder<CommandAlert.ActionConfig.Builder>
io.confluent.command.record.alert.CommandAlert.ActionConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CommandAlert.ActionConfigOrBuilder,Cloneable
- Enclosing class:
CommandAlert.ActionConfig
public static final class CommandAlert.ActionConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CommandAlert.ActionConfig.Builder>
implements CommandAlert.ActionConfigOrBuilder
Protobuf type
command_alert.ActionConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllTriggerGuid(Iterable<String> values) repeated string triggerGuid = 4;addTriggerGuid(String value) repeated string triggerGuid = 4;addTriggerGuidBytes(com.google.protobuf.ByteString value) repeated string triggerGuid = 4;build()clear().command_alert.EmailAction email = 7;bool enabled = 3;string guid = 1;int64 intervalMs = 6;int32 maxSendRate = 5;string name = 2;repeated string triggerGuid = 4;.command_alert.WebHookAction webhook = 8;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEmail().command_alert.EmailAction email = 7;.command_alert.EmailAction email = 7;.command_alert.EmailAction email = 7;booleanbool enabled = 3;getGuid()string guid = 1;com.google.protobuf.ByteStringstring guid = 1;longint64 intervalMs = 6;intint32 maxSendRate = 5;getName()string name = 2;com.google.protobuf.ByteStringstring name = 2;getTriggerGuid(int index) repeated string triggerGuid = 4;com.google.protobuf.ByteStringgetTriggerGuidBytes(int index) repeated string triggerGuid = 4;intrepeated string triggerGuid = 4;com.google.protobuf.ProtocolStringListrepeated string triggerGuid = 4;.command_alert.WebHookAction webhook = 8;.command_alert.WebHookAction webhook = 8;.command_alert.WebHookAction webhook = 8;booleanhasEmail().command_alert.EmailAction email = 7;boolean.command_alert.WebHookAction webhook = 8;final boolean.command_alert.EmailAction email = 7;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) .command_alert.WebHookAction webhook = 8;setEmail(CommandAlert.EmailAction value) .command_alert.EmailAction email = 7;setEmail(CommandAlert.EmailAction.Builder builderForValue) .command_alert.EmailAction email = 7;setEnabled(boolean value) bool enabled = 3;string guid = 1;setGuidBytes(com.google.protobuf.ByteString value) string guid = 1;setIntervalMs(long value) int64 intervalMs = 6;setMaxSendRate(int value) int32 maxSendRate = 5;string name = 2;setNameBytes(com.google.protobuf.ByteString value) string name = 2;setTriggerGuid(int index, String value) repeated string triggerGuid = 4;.command_alert.WebHookAction webhook = 8;setWebhook(CommandAlert.WebHookAction.Builder builderForValue) .command_alert.WebHookAction webhook = 8;Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, mergeUnknownFields, newBuilderForField, setField, setRepeatedField, setUnknownFieldsMethods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
mergeDelimitedFrom, mergeDelimitedFrom, mergeFromMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CommandAlert.ActionConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CommandAlert.ActionConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommandAlert.ActionConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CommandAlert.ActionConfig.Builder>
-
mergeFrom
public CommandAlert.ActionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommandAlert.ActionConfig.Builder>- Throws:
IOException
-
getActionCase
- Specified by:
getActionCasein interfaceCommandAlert.ActionConfigOrBuilder
-
clearAction
-
getGuid
string guid = 1;- Specified by:
getGuidin interfaceCommandAlert.ActionConfigOrBuilder- Returns:
- The guid.
-
getGuidBytes
public com.google.protobuf.ByteString getGuidBytes()string guid = 1;- Specified by:
getGuidBytesin interfaceCommandAlert.ActionConfigOrBuilder- Returns:
- The bytes for guid.
-
setGuid
string guid = 1;- Parameters:
value- The guid to set.- Returns:
- This builder for chaining.
-
clearGuid
string guid = 1;- Returns:
- This builder for chaining.
-
setGuidBytes
string guid = 1;- Parameters:
value- The bytes for guid to set.- Returns:
- This builder for chaining.
-
getName
string name = 2;- Specified by:
getNamein interfaceCommandAlert.ActionConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 2;- Specified by:
getNameBytesin interfaceCommandAlert.ActionConfigOrBuilder- Returns:
- The bytes for name.
-
setName
string name = 2;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
string name = 2;- Returns:
- This builder for chaining.
-
setNameBytes
string name = 2;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getEnabled
public boolean getEnabled()bool enabled = 3;- Specified by:
getEnabledin interfaceCommandAlert.ActionConfigOrBuilder- Returns:
- The enabled.
-
setEnabled
bool enabled = 3;- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
bool enabled = 3;- Returns:
- This builder for chaining.
-
getTriggerGuidList
public com.google.protobuf.ProtocolStringList getTriggerGuidList()repeated string triggerGuid = 4;- Specified by:
getTriggerGuidListin interfaceCommandAlert.ActionConfigOrBuilder- Returns:
- A list containing the triggerGuid.
-
getTriggerGuidCount
public int getTriggerGuidCount()repeated string triggerGuid = 4;- Specified by:
getTriggerGuidCountin interfaceCommandAlert.ActionConfigOrBuilder- Returns:
- The count of triggerGuid.
-
getTriggerGuid
repeated string triggerGuid = 4;- Specified by:
getTriggerGuidin interfaceCommandAlert.ActionConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The triggerGuid at the given index.
-
getTriggerGuidBytes
public com.google.protobuf.ByteString getTriggerGuidBytes(int index) repeated string triggerGuid = 4;- Specified by:
getTriggerGuidBytesin interfaceCommandAlert.ActionConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the triggerGuid at the given index.
-
setTriggerGuid
repeated string triggerGuid = 4;- Parameters:
index- The index to set the value at.value- The triggerGuid to set.- Returns:
- This builder for chaining.
-
addTriggerGuid
repeated string triggerGuid = 4;- Parameters:
value- The triggerGuid to add.- Returns:
- This builder for chaining.
-
addAllTriggerGuid
repeated string triggerGuid = 4;- Parameters:
values- The triggerGuid to add.- Returns:
- This builder for chaining.
-
clearTriggerGuid
repeated string triggerGuid = 4;- Returns:
- This builder for chaining.
-
addTriggerGuidBytes
repeated string triggerGuid = 4;- Parameters:
value- The bytes of the triggerGuid to add.- Returns:
- This builder for chaining.
-
getMaxSendRate
public int getMaxSendRate()int32 maxSendRate = 5;- Specified by:
getMaxSendRatein interfaceCommandAlert.ActionConfigOrBuilder- Returns:
- The maxSendRate.
-
setMaxSendRate
int32 maxSendRate = 5;- Parameters:
value- The maxSendRate to set.- Returns:
- This builder for chaining.
-
clearMaxSendRate
int32 maxSendRate = 5;- Returns:
- This builder for chaining.
-
getIntervalMs
public long getIntervalMs()int64 intervalMs = 6;- Specified by:
getIntervalMsin interfaceCommandAlert.ActionConfigOrBuilder- Returns:
- The intervalMs.
-
setIntervalMs
int64 intervalMs = 6;- Parameters:
value- The intervalMs to set.- Returns:
- This builder for chaining.
-
clearIntervalMs
int64 intervalMs = 6;- Returns:
- This builder for chaining.
-
hasEmail
public boolean hasEmail().command_alert.EmailAction email = 7;- Specified by:
hasEmailin interfaceCommandAlert.ActionConfigOrBuilder- Returns:
- Whether the email field is set.
-
getEmail
.command_alert.EmailAction email = 7;- Specified by:
getEmailin interfaceCommandAlert.ActionConfigOrBuilder- Returns:
- The email.
-
setEmail
.command_alert.EmailAction email = 7; -
setEmail
.command_alert.EmailAction email = 7; -
mergeEmail
.command_alert.EmailAction email = 7; -
clearEmail
.command_alert.EmailAction email = 7; -
getEmailBuilder
.command_alert.EmailAction email = 7; -
getEmailOrBuilder
.command_alert.EmailAction email = 7;- Specified by:
getEmailOrBuilderin interfaceCommandAlert.ActionConfigOrBuilder
-
hasWebhook
public boolean hasWebhook().command_alert.WebHookAction webhook = 8;- Specified by:
hasWebhookin interfaceCommandAlert.ActionConfigOrBuilder- Returns:
- Whether the webhook field is set.
-
getWebhook
.command_alert.WebHookAction webhook = 8;- Specified by:
getWebhookin interfaceCommandAlert.ActionConfigOrBuilder- Returns:
- The webhook.
-
setWebhook
.command_alert.WebHookAction webhook = 8; -
setWebhook
public CommandAlert.ActionConfig.Builder setWebhook(CommandAlert.WebHookAction.Builder builderForValue) .command_alert.WebHookAction webhook = 8; -
mergeWebhook
.command_alert.WebHookAction webhook = 8; -
clearWebhook
.command_alert.WebHookAction webhook = 8; -
getWebhookBuilder
.command_alert.WebHookAction webhook = 8; -
getWebhookOrBuilder
.command_alert.WebHookAction webhook = 8;- Specified by:
getWebhookOrBuilderin interfaceCommandAlert.ActionConfigOrBuilder
-