Package com.authzed.api.v0
Class Developer.DeveloperError.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Developer.DeveloperError.Builder>
com.authzed.api.v0.Developer.DeveloperError.Builder
- All Implemented Interfaces:
Developer.DeveloperErrorOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Developer.DeveloperError
public static final class Developer.DeveloperError.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Developer.DeveloperError.Builder>
implements Developer.DeveloperErrorOrBuilder
Protobuf type
authzed.api.v0.DeveloperError
-
Method Summary
Modifier and TypeMethodDescriptionaddAllPath
(Iterable<String> values) repeated string path = 6;
repeated string path = 6;
addPathBytes
(com.google.protobuf.ByteString value) repeated string path = 6;
build()
clear()
uint32 column = 3;
context holds the context for the error..authzed.api.v0.DeveloperError.ErrorKind kind = 5;
uint32 line = 2;
string message = 1;
repeated string path = 6;
.authzed.api.v0.DeveloperError.Source source = 4;
int
uint32 column = 3;
context holds the context for the error.com.google.protobuf.ByteString
context holds the context for the error.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getKind()
.authzed.api.v0.DeveloperError.ErrorKind kind = 5;
int
.authzed.api.v0.DeveloperError.ErrorKind kind = 5;
int
getLine()
uint32 line = 2;
string message = 1;
com.google.protobuf.ByteString
string message = 1;
getPath
(int index) repeated string path = 6;
com.google.protobuf.ByteString
getPathBytes
(int index) repeated string path = 6;
int
repeated string path = 6;
com.google.protobuf.ProtocolStringList
repeated string path = 6;
.authzed.api.v0.DeveloperError.Source source = 4;
int
.authzed.api.v0.DeveloperError.Source source = 4;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) setColumn
(int value) uint32 column = 3;
setContext
(String value) context holds the context for the error.setContextBytes
(com.google.protobuf.ByteString value) context holds the context for the error..authzed.api.v0.DeveloperError.ErrorKind kind = 5;
setKindValue
(int value) .authzed.api.v0.DeveloperError.ErrorKind kind = 5;
setLine
(int value) uint32 line = 2;
setMessage
(String value) string message = 1;
setMessageBytes
(com.google.protobuf.ByteString value) string message = 1;
repeated string path = 6;
.authzed.api.v0.DeveloperError.Source source = 4;
setSourceValue
(int value) .authzed.api.v0.DeveloperError.Source source = 4;
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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Developer.DeveloperError.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Developer.DeveloperError.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Developer.DeveloperError.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Developer.DeveloperError.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Developer.DeveloperError.Builder>
-
mergeFrom
public Developer.DeveloperError.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Developer.DeveloperError.Builder>
- Throws:
IOException
-
getMessage
string message = 1;
- Specified by:
getMessage
in interfaceDeveloper.DeveloperErrorOrBuilder
- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()string message = 1;
- Specified by:
getMessageBytes
in interfaceDeveloper.DeveloperErrorOrBuilder
- Returns:
- The bytes for message.
-
setMessage
string message = 1;
- Parameters:
value
- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
string message = 1;
- Returns:
- This builder for chaining.
-
setMessageBytes
string message = 1;
- Parameters:
value
- The bytes for message to set.- Returns:
- This builder for chaining.
-
getLine
public int getLine()uint32 line = 2;
- Specified by:
getLine
in interfaceDeveloper.DeveloperErrorOrBuilder
- Returns:
- The line.
-
setLine
uint32 line = 2;
- Parameters:
value
- The line to set.- Returns:
- This builder for chaining.
-
clearLine
uint32 line = 2;
- Returns:
- This builder for chaining.
-
getColumn
public int getColumn()uint32 column = 3;
- Specified by:
getColumn
in interfaceDeveloper.DeveloperErrorOrBuilder
- Returns:
- The column.
-
setColumn
uint32 column = 3;
- Parameters:
value
- The column to set.- Returns:
- This builder for chaining.
-
clearColumn
uint32 column = 3;
- Returns:
- This builder for chaining.
-
getSourceValue
public int getSourceValue().authzed.api.v0.DeveloperError.Source source = 4;
- Specified by:
getSourceValue
in interfaceDeveloper.DeveloperErrorOrBuilder
- Returns:
- The enum numeric value on the wire for source.
-
setSourceValue
.authzed.api.v0.DeveloperError.Source source = 4;
- Parameters:
value
- The enum numeric value on the wire for source to set.- Returns:
- This builder for chaining.
-
getSource
.authzed.api.v0.DeveloperError.Source source = 4;
- Specified by:
getSource
in interfaceDeveloper.DeveloperErrorOrBuilder
- Returns:
- The source.
-
setSource
.authzed.api.v0.DeveloperError.Source source = 4;
- Parameters:
value
- The source to set.- Returns:
- This builder for chaining.
-
clearSource
.authzed.api.v0.DeveloperError.Source source = 4;
- Returns:
- This builder for chaining.
-
getKindValue
public int getKindValue().authzed.api.v0.DeveloperError.ErrorKind kind = 5;
- Specified by:
getKindValue
in interfaceDeveloper.DeveloperErrorOrBuilder
- Returns:
- The enum numeric value on the wire for kind.
-
setKindValue
.authzed.api.v0.DeveloperError.ErrorKind kind = 5;
- Parameters:
value
- The enum numeric value on the wire for kind to set.- Returns:
- This builder for chaining.
-
getKind
.authzed.api.v0.DeveloperError.ErrorKind kind = 5;
- Specified by:
getKind
in interfaceDeveloper.DeveloperErrorOrBuilder
- Returns:
- The kind.
-
setKind
.authzed.api.v0.DeveloperError.ErrorKind kind = 5;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
.authzed.api.v0.DeveloperError.ErrorKind kind = 5;
- Returns:
- This builder for chaining.
-
getPathList
public com.google.protobuf.ProtocolStringList getPathList()repeated string path = 6;
- Specified by:
getPathList
in interfaceDeveloper.DeveloperErrorOrBuilder
- Returns:
- A list containing the path.
-
getPathCount
public int getPathCount()repeated string path = 6;
- Specified by:
getPathCount
in interfaceDeveloper.DeveloperErrorOrBuilder
- Returns:
- The count of path.
-
getPath
repeated string path = 6;
- Specified by:
getPath
in interfaceDeveloper.DeveloperErrorOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The path at the given index.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes(int index) repeated string path = 6;
- Specified by:
getPathBytes
in interfaceDeveloper.DeveloperErrorOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the path at the given index.
-
setPath
repeated string path = 6;
- Parameters:
index
- The index to set the value at.value
- The path to set.- Returns:
- This builder for chaining.
-
addPath
repeated string path = 6;
- Parameters:
value
- The path to add.- Returns:
- This builder for chaining.
-
addAllPath
repeated string path = 6;
- Parameters:
values
- The path to add.- Returns:
- This builder for chaining.
-
clearPath
repeated string path = 6;
- Returns:
- This builder for chaining.
-
addPathBytes
repeated string path = 6;
- Parameters:
value
- The bytes of the path to add.- Returns:
- This builder for chaining.
-
getContext
context holds the context for the error. For schema issues, this will be the name of the object type. For relationship issues, the full relationship string.
string context = 7;
- Specified by:
getContext
in interfaceDeveloper.DeveloperErrorOrBuilder
- Returns:
- The context.
-
getContextBytes
public com.google.protobuf.ByteString getContextBytes()context holds the context for the error. For schema issues, this will be the name of the object type. For relationship issues, the full relationship string.
string context = 7;
- Specified by:
getContextBytes
in interfaceDeveloper.DeveloperErrorOrBuilder
- Returns:
- The bytes for context.
-
setContext
context holds the context for the error. For schema issues, this will be the name of the object type. For relationship issues, the full relationship string.
string context = 7;
- Parameters:
value
- The context to set.- Returns:
- This builder for chaining.
-
clearContext
context holds the context for the error. For schema issues, this will be the name of the object type. For relationship issues, the full relationship string.
string context = 7;
- Returns:
- This builder for chaining.
-
setContextBytes
context holds the context for the error. For schema issues, this will be the name of the object type. For relationship issues, the full relationship string.
string context = 7;
- Parameters:
value
- The bytes for context to set.- Returns:
- This builder for chaining.
-