Class VeniceControllerGrpcErrorInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<VeniceControllerGrpcErrorInfo.Builder>
com.linkedin.venice.protocols.controller.VeniceControllerGrpcErrorInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,VeniceControllerGrpcErrorInfoOrBuilder
,Cloneable
- Enclosing class:
- VeniceControllerGrpcErrorInfo
public static final class VeniceControllerGrpcErrorInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<VeniceControllerGrpcErrorInfo.Builder>
implements VeniceControllerGrpcErrorInfoOrBuilder
Protobuf type
com.linkedin.venice.protocols.controller.VeniceControllerGrpcErrorInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
optional string clusterName = 4;
string errorMessage = 2;
optional .com.linkedin.venice.protocols.controller.ControllerGrpcErrorType errorType = 3;
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) uint32 statusCode = 1;
optional string storeName = 5;
clone()
optional string clusterName = 4;
com.google.protobuf.ByteString
optional string clusterName = 4;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
string errorMessage = 2;
com.google.protobuf.ByteString
string errorMessage = 2;
optional .com.linkedin.venice.protocols.controller.ControllerGrpcErrorType errorType = 3;
int
optional .com.linkedin.venice.protocols.controller.ControllerGrpcErrorType errorType = 3;
int
uint32 statusCode = 1;
optional string storeName = 5;
com.google.protobuf.ByteString
optional string storeName = 5;
boolean
optional string clusterName = 4;
boolean
optional .com.linkedin.venice.protocols.controller.ControllerGrpcErrorType errorType = 3;
boolean
optional string storeName = 5;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setClusterName
(String value) optional string clusterName = 4;
setClusterNameBytes
(com.google.protobuf.ByteString value) optional string clusterName = 4;
setErrorMessage
(String value) string errorMessage = 2;
setErrorMessageBytes
(com.google.protobuf.ByteString value) string errorMessage = 2;
optional .com.linkedin.venice.protocols.controller.ControllerGrpcErrorType errorType = 3;
setErrorTypeValue
(int value) optional .com.linkedin.venice.protocols.controller.ControllerGrpcErrorType errorType = 3;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStatusCode
(int value) uint32 statusCode = 1;
setStoreName
(String value) optional string storeName = 5;
setStoreNameBytes
(com.google.protobuf.ByteString value) optional string storeName = 5;
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceControllerGrpcErrorInfo.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.GeneratedMessageV3.Builder<VeniceControllerGrpcErrorInfo.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.GeneratedMessageV3.Builder<VeniceControllerGrpcErrorInfo.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
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceControllerGrpcErrorInfo.Builder>
-
setField
public VeniceControllerGrpcErrorInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceControllerGrpcErrorInfo.Builder>
-
clearField
public VeniceControllerGrpcErrorInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceControllerGrpcErrorInfo.Builder>
-
clearOneof
public VeniceControllerGrpcErrorInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceControllerGrpcErrorInfo.Builder>
-
setRepeatedField
public VeniceControllerGrpcErrorInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceControllerGrpcErrorInfo.Builder>
-
addRepeatedField
public VeniceControllerGrpcErrorInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceControllerGrpcErrorInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VeniceControllerGrpcErrorInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceControllerGrpcErrorInfo.Builder>
-
mergeFrom
public VeniceControllerGrpcErrorInfo.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<VeniceControllerGrpcErrorInfo.Builder>
- Throws:
IOException
-
getStatusCode
public int getStatusCode()uint32 statusCode = 1;
- Specified by:
getStatusCode
in interfaceVeniceControllerGrpcErrorInfoOrBuilder
- Returns:
- The statusCode.
-
setStatusCode
uint32 statusCode = 1;
- Parameters:
value
- The statusCode to set.- Returns:
- This builder for chaining.
-
clearStatusCode
uint32 statusCode = 1;
- Returns:
- This builder for chaining.
-
getErrorMessage
string errorMessage = 2;
- Specified by:
getErrorMessage
in interfaceVeniceControllerGrpcErrorInfoOrBuilder
- Returns:
- The errorMessage.
-
getErrorMessageBytes
public com.google.protobuf.ByteString getErrorMessageBytes()string errorMessage = 2;
- Specified by:
getErrorMessageBytes
in interfaceVeniceControllerGrpcErrorInfoOrBuilder
- Returns:
- The bytes for errorMessage.
-
setErrorMessage
string errorMessage = 2;
- Parameters:
value
- The errorMessage to set.- Returns:
- This builder for chaining.
-
clearErrorMessage
string errorMessage = 2;
- Returns:
- This builder for chaining.
-
setErrorMessageBytes
public VeniceControllerGrpcErrorInfo.Builder setErrorMessageBytes(com.google.protobuf.ByteString value) string errorMessage = 2;
- Parameters:
value
- The bytes for errorMessage to set.- Returns:
- This builder for chaining.
-
hasErrorType
public boolean hasErrorType()optional .com.linkedin.venice.protocols.controller.ControllerGrpcErrorType errorType = 3;
- Specified by:
hasErrorType
in interfaceVeniceControllerGrpcErrorInfoOrBuilder
- Returns:
- Whether the errorType field is set.
-
getErrorTypeValue
public int getErrorTypeValue()optional .com.linkedin.venice.protocols.controller.ControllerGrpcErrorType errorType = 3;
- Specified by:
getErrorTypeValue
in interfaceVeniceControllerGrpcErrorInfoOrBuilder
- Returns:
- The enum numeric value on the wire for errorType.
-
setErrorTypeValue
optional .com.linkedin.venice.protocols.controller.ControllerGrpcErrorType errorType = 3;
- Parameters:
value
- The enum numeric value on the wire for errorType to set.- Returns:
- This builder for chaining.
-
getErrorType
optional .com.linkedin.venice.protocols.controller.ControllerGrpcErrorType errorType = 3;
- Specified by:
getErrorType
in interfaceVeniceControllerGrpcErrorInfoOrBuilder
- Returns:
- The errorType.
-
setErrorType
optional .com.linkedin.venice.protocols.controller.ControllerGrpcErrorType errorType = 3;
- Parameters:
value
- The errorType to set.- Returns:
- This builder for chaining.
-
clearErrorType
optional .com.linkedin.venice.protocols.controller.ControllerGrpcErrorType errorType = 3;
- Returns:
- This builder for chaining.
-
hasClusterName
public boolean hasClusterName()optional string clusterName = 4;
- Specified by:
hasClusterName
in interfaceVeniceControllerGrpcErrorInfoOrBuilder
- Returns:
- Whether the clusterName field is set.
-
getClusterName
optional string clusterName = 4;
- Specified by:
getClusterName
in interfaceVeniceControllerGrpcErrorInfoOrBuilder
- Returns:
- The clusterName.
-
getClusterNameBytes
public com.google.protobuf.ByteString getClusterNameBytes()optional string clusterName = 4;
- Specified by:
getClusterNameBytes
in interfaceVeniceControllerGrpcErrorInfoOrBuilder
- Returns:
- The bytes for clusterName.
-
setClusterName
optional string clusterName = 4;
- Parameters:
value
- The clusterName to set.- Returns:
- This builder for chaining.
-
clearClusterName
optional string clusterName = 4;
- Returns:
- This builder for chaining.
-
setClusterNameBytes
public VeniceControllerGrpcErrorInfo.Builder setClusterNameBytes(com.google.protobuf.ByteString value) optional string clusterName = 4;
- Parameters:
value
- The bytes for clusterName to set.- Returns:
- This builder for chaining.
-
hasStoreName
public boolean hasStoreName()optional string storeName = 5;
- Specified by:
hasStoreName
in interfaceVeniceControllerGrpcErrorInfoOrBuilder
- Returns:
- Whether the storeName field is set.
-
getStoreName
optional string storeName = 5;
- Specified by:
getStoreName
in interfaceVeniceControllerGrpcErrorInfoOrBuilder
- Returns:
- The storeName.
-
getStoreNameBytes
public com.google.protobuf.ByteString getStoreNameBytes()optional string storeName = 5;
- Specified by:
getStoreNameBytes
in interfaceVeniceControllerGrpcErrorInfoOrBuilder
- Returns:
- The bytes for storeName.
-
setStoreName
optional string storeName = 5;
- Parameters:
value
- The storeName to set.- Returns:
- This builder for chaining.
-
clearStoreName
optional string storeName = 5;
- Returns:
- This builder for chaining.
-
setStoreNameBytes
public VeniceControllerGrpcErrorInfo.Builder setStoreNameBytes(com.google.protobuf.ByteString value) optional string storeName = 5;
- Parameters:
value
- The bytes for storeName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final VeniceControllerGrpcErrorInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceControllerGrpcErrorInfo.Builder>
-
mergeUnknownFields
public final VeniceControllerGrpcErrorInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VeniceControllerGrpcErrorInfo.Builder>
-