Class SettingsNamespace.SettingsEntry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SettingsNamespace.SettingsEntry.Builder>
com.google.protobuf.GeneratedMessage.Builder<SettingsNamespace.SettingsEntry.Builder>
com.soulfiremc.grpc.generated.SettingsNamespace.SettingsEntry.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SettingsNamespace.SettingsEntryOrBuilder, Cloneable
- Enclosing class:
SettingsNamespace.SettingsEntry
public static final class SettingsNamespace.SettingsEntry.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SettingsNamespace.SettingsEntry.Builder>
implements SettingsNamespace.SettingsEntryOrBuilder
A single key-value setting entry within a namespace.Protobuf type
soulfire.v1.SettingsNamespace.SettingsEntry-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()clearKey()The unique key identifying this setting within its namespace.The value of this setting as a protobuf Value.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetKey()The unique key identifying this setting within its namespace.com.google.protobuf.ByteStringThe unique key identifying this setting within its namespace.com.google.protobuf.ValuegetValue()The value of this setting as a protobuf Value.com.google.protobuf.Value.BuilderThe value of this setting as a protobuf Value.com.google.protobuf.ValueOrBuilderThe value of this setting as a protobuf Value.booleanhasValue()The value of this setting as a protobuf Value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeValue(com.google.protobuf.Value value) The value of this setting as a protobuf Value.The unique key identifying this setting within its namespace.setKeyBytes(com.google.protobuf.ByteString value) The unique key identifying this setting within its namespace.setValue(com.google.protobuf.Value value) The value of this setting as a protobuf Value.setValue(com.google.protobuf.Value.Builder builderForValue) The value of this setting as a protobuf Value.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SettingsNamespace.SettingsEntry.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SettingsNamespace.SettingsEntry.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<SettingsNamespace.SettingsEntry.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<SettingsNamespace.SettingsEntry.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SettingsNamespace.SettingsEntry.Builder>
-
mergeFrom
public SettingsNamespace.SettingsEntry.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<SettingsNamespace.SettingsEntry.Builder>- Throws:
IOException
-
getKey
The unique key identifying this setting within its namespace. Should be a valid identifier (alphanumeric with underscores/dashes).
string key = 1;- Specified by:
getKeyin interfaceSettingsNamespace.SettingsEntryOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()The unique key identifying this setting within its namespace. Should be a valid identifier (alphanumeric with underscores/dashes).
string key = 1;- Specified by:
getKeyBytesin interfaceSettingsNamespace.SettingsEntryOrBuilder- Returns:
- The bytes for key.
-
setKey
The unique key identifying this setting within its namespace. Should be a valid identifier (alphanumeric with underscores/dashes).
string key = 1;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
The unique key identifying this setting within its namespace. Should be a valid identifier (alphanumeric with underscores/dashes).
string key = 1;- Returns:
- This builder for chaining.
-
setKeyBytes
The unique key identifying this setting within its namespace. Should be a valid identifier (alphanumeric with underscores/dashes).
string key = 1;- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
hasValue
public boolean hasValue()The value of this setting as a protobuf Value. Can be a string, number, boolean, list, or nested object. The expected type depends on the setting definition (see SettingsDefinition).
.google.protobuf.Value value = 2;- Specified by:
hasValuein interfaceSettingsNamespace.SettingsEntryOrBuilder- Returns:
- Whether the value field is set.
-
getValue
public com.google.protobuf.Value getValue()The value of this setting as a protobuf Value. Can be a string, number, boolean, list, or nested object. The expected type depends on the setting definition (see SettingsDefinition).
.google.protobuf.Value value = 2;- Specified by:
getValuein interfaceSettingsNamespace.SettingsEntryOrBuilder- Returns:
- The value.
-
setValue
The value of this setting as a protobuf Value. Can be a string, number, boolean, list, or nested object. The expected type depends on the setting definition (see SettingsDefinition).
.google.protobuf.Value value = 2; -
setValue
public SettingsNamespace.SettingsEntry.Builder setValue(com.google.protobuf.Value.Builder builderForValue) The value of this setting as a protobuf Value. Can be a string, number, boolean, list, or nested object. The expected type depends on the setting definition (see SettingsDefinition).
.google.protobuf.Value value = 2; -
mergeValue
The value of this setting as a protobuf Value. Can be a string, number, boolean, list, or nested object. The expected type depends on the setting definition (see SettingsDefinition).
.google.protobuf.Value value = 2; -
clearValue
The value of this setting as a protobuf Value. Can be a string, number, boolean, list, or nested object. The expected type depends on the setting definition (see SettingsDefinition).
.google.protobuf.Value value = 2; -
getValueBuilder
public com.google.protobuf.Value.Builder getValueBuilder()The value of this setting as a protobuf Value. Can be a string, number, boolean, list, or nested object. The expected type depends on the setting definition (see SettingsDefinition).
.google.protobuf.Value value = 2; -
getValueOrBuilder
public com.google.protobuf.ValueOrBuilder getValueOrBuilder()The value of this setting as a protobuf Value. Can be a string, number, boolean, list, or nested object. The expected type depends on the setting definition (see SettingsDefinition).
.google.protobuf.Value value = 2;- Specified by:
getValueOrBuilderin interfaceSettingsNamespace.SettingsEntryOrBuilder
-