public static final class SofaRpcProto.SofaRpcMeta.Builder extends com.google.protobuf.GeneratedMessage.Builder<SofaRpcProto.SofaRpcMeta.Builder> implements SofaRpcProto.SofaRpcMetaOrBuilder
brpc.policy.SofaRpcMeta| Modifier and Type | Method and Description |
|---|---|
SofaRpcProto.SofaRpcMeta |
build() |
SofaRpcProto.SofaRpcMeta |
buildPartial() |
SofaRpcProto.SofaRpcMeta.Builder |
clear() |
SofaRpcProto.SofaRpcMeta.Builder |
clearCompressType()
optional .brpc.policy.SofaCompressType compress_type = 300; |
SofaRpcProto.SofaRpcMeta.Builder |
clearErrorCode()
optional int32 error_code = 201; |
SofaRpcProto.SofaRpcMeta.Builder |
clearExpectedResponseCompressType()
optional .brpc.policy.SofaCompressType expected_response_compress_type = 301; |
SofaRpcProto.SofaRpcMeta.Builder |
clearFailed()
optional bool failed = 200; |
SofaRpcProto.SofaRpcMeta.Builder |
clearMethod()
optional string method = 100; |
SofaRpcProto.SofaRpcMeta.Builder |
clearReason()
optional string reason = 202; |
SofaRpcProto.SofaRpcMeta.Builder |
clearSequenceId()
required uint64 sequence_id = 2; |
SofaRpcProto.SofaRpcMeta.Builder |
clearType()
required .brpc.policy.SofaRpcMeta.Type type = 1; |
SofaRpcProto.SofaRpcMeta.Builder |
clone() |
SofaRpcProto.SofaCompressType |
getCompressType()
optional .brpc.policy.SofaCompressType compress_type = 300; |
SofaRpcProto.SofaRpcMeta |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getErrorCode()
optional int32 error_code = 201; |
SofaRpcProto.SofaCompressType |
getExpectedResponseCompressType()
optional .brpc.policy.SofaCompressType expected_response_compress_type = 301; |
boolean |
getFailed()
optional bool failed = 200; |
String |
getMethod()
optional string method = 100; |
com.google.protobuf.ByteString |
getMethodBytes()
optional string method = 100; |
String |
getReason()
optional string reason = 202; |
com.google.protobuf.ByteString |
getReasonBytes()
optional string reason = 202; |
long |
getSequenceId()
required uint64 sequence_id = 2; |
SofaRpcProto.SofaRpcMeta.Type |
getType()
required .brpc.policy.SofaRpcMeta.Type type = 1; |
boolean |
hasCompressType()
optional .brpc.policy.SofaCompressType compress_type = 300; |
boolean |
hasErrorCode()
optional int32 error_code = 201; |
boolean |
hasExpectedResponseCompressType()
optional .brpc.policy.SofaCompressType expected_response_compress_type = 301; |
boolean |
hasFailed()
optional bool failed = 200; |
boolean |
hasMethod()
optional string method = 100; |
boolean |
hasReason()
optional string reason = 202; |
boolean |
hasSequenceId()
required uint64 sequence_id = 2; |
boolean |
hasType()
required .brpc.policy.SofaRpcMeta.Type type = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SofaRpcProto.SofaRpcMeta.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SofaRpcProto.SofaRpcMeta.Builder |
mergeFrom(com.google.protobuf.Message other) |
SofaRpcProto.SofaRpcMeta.Builder |
mergeFrom(SofaRpcProto.SofaRpcMeta other) |
SofaRpcProto.SofaRpcMeta.Builder |
setCompressType(SofaRpcProto.SofaCompressType value)
optional .brpc.policy.SofaCompressType compress_type = 300; |
SofaRpcProto.SofaRpcMeta.Builder |
setErrorCode(int value)
optional int32 error_code = 201; |
SofaRpcProto.SofaRpcMeta.Builder |
setExpectedResponseCompressType(SofaRpcProto.SofaCompressType value)
optional .brpc.policy.SofaCompressType expected_response_compress_type = 301; |
SofaRpcProto.SofaRpcMeta.Builder |
setFailed(boolean value)
optional bool failed = 200; |
SofaRpcProto.SofaRpcMeta.Builder |
setMethod(String value)
optional string method = 100; |
SofaRpcProto.SofaRpcMeta.Builder |
setMethodBytes(com.google.protobuf.ByteString value)
optional string method = 100; |
SofaRpcProto.SofaRpcMeta.Builder |
setReason(String value)
optional string reason = 202; |
SofaRpcProto.SofaRpcMeta.Builder |
setReasonBytes(com.google.protobuf.ByteString value)
optional string reason = 202; |
SofaRpcProto.SofaRpcMeta.Builder |
setSequenceId(long value)
required uint64 sequence_id = 2; |
SofaRpcProto.SofaRpcMeta.Builder |
setType(SofaRpcProto.SofaRpcMeta.Type value)
required .brpc.policy.SofaRpcMeta.Type type = 1; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionaddAll, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SofaRpcProto.SofaRpcMeta.Builder>public SofaRpcProto.SofaRpcMeta.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<SofaRpcProto.SofaRpcMeta.Builder>public SofaRpcProto.SofaRpcMeta.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessage.Builder<SofaRpcProto.SofaRpcMeta.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SofaRpcProto.SofaRpcMeta.Builder>public SofaRpcProto.SofaRpcMeta getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SofaRpcProto.SofaRpcMeta build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SofaRpcProto.SofaRpcMeta buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SofaRpcProto.SofaRpcMeta.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SofaRpcProto.SofaRpcMeta.Builder>public SofaRpcProto.SofaRpcMeta.Builder mergeFrom(SofaRpcProto.SofaRpcMeta other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<SofaRpcProto.SofaRpcMeta.Builder>public SofaRpcProto.SofaRpcMeta.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SofaRpcProto.SofaRpcMeta.Builder>IOExceptionpublic boolean hasType()
required .brpc.policy.SofaRpcMeta.Type type = 1;hasType in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic SofaRpcProto.SofaRpcMeta.Type getType()
required .brpc.policy.SofaRpcMeta.Type type = 1;getType in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic SofaRpcProto.SofaRpcMeta.Builder setType(SofaRpcProto.SofaRpcMeta.Type value)
required .brpc.policy.SofaRpcMeta.Type type = 1;public SofaRpcProto.SofaRpcMeta.Builder clearType()
required .brpc.policy.SofaRpcMeta.Type type = 1;public boolean hasSequenceId()
required uint64 sequence_id = 2;
Message sequence id.
hasSequenceId in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic long getSequenceId()
required uint64 sequence_id = 2;
Message sequence id.
getSequenceId in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic SofaRpcProto.SofaRpcMeta.Builder setSequenceId(long value)
required uint64 sequence_id = 2;
Message sequence id.
public SofaRpcProto.SofaRpcMeta.Builder clearSequenceId()
required uint64 sequence_id = 2;
Message sequence id.
public boolean hasMethod()
optional string method = 100;
Method full name. For io.brpc.example.example: "test.HelloService.GreetMethod"
hasMethod in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic String getMethod()
optional string method = 100;
Method full name. For io.brpc.example.example: "test.HelloService.GreetMethod"
getMethod in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic com.google.protobuf.ByteString getMethodBytes()
optional string method = 100;
Method full name. For io.brpc.example.example: "test.HelloService.GreetMethod"
getMethodBytes in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic SofaRpcProto.SofaRpcMeta.Builder setMethod(String value)
optional string method = 100;
Method full name. For io.brpc.example.example: "test.HelloService.GreetMethod"
public SofaRpcProto.SofaRpcMeta.Builder clearMethod()
optional string method = 100;
Method full name. For io.brpc.example.example: "test.HelloService.GreetMethod"
public SofaRpcProto.SofaRpcMeta.Builder setMethodBytes(com.google.protobuf.ByteString value)
optional string method = 100;
Method full name. For io.brpc.example.example: "test.HelloService.GreetMethod"
public boolean hasFailed()
optional bool failed = 200;
Set as true if the call is failed.
hasFailed in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic boolean getFailed()
optional bool failed = 200;
Set as true if the call is failed.
getFailed in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic SofaRpcProto.SofaRpcMeta.Builder setFailed(boolean value)
optional bool failed = 200;
Set as true if the call is failed.
public SofaRpcProto.SofaRpcMeta.Builder clearFailed()
optional bool failed = 200;
Set as true if the call is failed.
public boolean hasErrorCode()
optional int32 error_code = 201;
The error code if the call is failed.
hasErrorCode in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic int getErrorCode()
optional int32 error_code = 201;
The error code if the call is failed.
getErrorCode in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic SofaRpcProto.SofaRpcMeta.Builder setErrorCode(int value)
optional int32 error_code = 201;
The error code if the call is failed.
public SofaRpcProto.SofaRpcMeta.Builder clearErrorCode()
optional int32 error_code = 201;
The error code if the call is failed.
public boolean hasReason()
optional string reason = 202;
The error reason if the call is failed.
hasReason in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic String getReason()
optional string reason = 202;
The error reason if the call is failed.
getReason in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic com.google.protobuf.ByteString getReasonBytes()
optional string reason = 202;
The error reason if the call is failed.
getReasonBytes in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic SofaRpcProto.SofaRpcMeta.Builder setReason(String value)
optional string reason = 202;
The error reason if the call is failed.
public SofaRpcProto.SofaRpcMeta.Builder clearReason()
optional string reason = 202;
The error reason if the call is failed.
public SofaRpcProto.SofaRpcMeta.Builder setReasonBytes(com.google.protobuf.ByteString value)
optional string reason = 202;
The error reason if the call is failed.
public boolean hasCompressType()
optional .brpc.policy.SofaCompressType compress_type = 300;
Set the request/response compress type.
hasCompressType in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic SofaRpcProto.SofaCompressType getCompressType()
optional .brpc.policy.SofaCompressType compress_type = 300;
Set the request/response compress type.
getCompressType in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic SofaRpcProto.SofaRpcMeta.Builder setCompressType(SofaRpcProto.SofaCompressType value)
optional .brpc.policy.SofaCompressType compress_type = 300;
Set the request/response compress type.
public SofaRpcProto.SofaRpcMeta.Builder clearCompressType()
optional .brpc.policy.SofaCompressType compress_type = 300;
Set the request/response compress type.
public boolean hasExpectedResponseCompressType()
optional .brpc.policy.SofaCompressType expected_response_compress_type = 301;
Set the response compress type of user expected.
hasExpectedResponseCompressType in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic SofaRpcProto.SofaCompressType getExpectedResponseCompressType()
optional .brpc.policy.SofaCompressType expected_response_compress_type = 301;
Set the response compress type of user expected.
getExpectedResponseCompressType in interface SofaRpcProto.SofaRpcMetaOrBuilderpublic SofaRpcProto.SofaRpcMeta.Builder setExpectedResponseCompressType(SofaRpcProto.SofaCompressType value)
optional .brpc.policy.SofaCompressType expected_response_compress_type = 301;
Set the response compress type of user expected.
public SofaRpcProto.SofaRpcMeta.Builder clearExpectedResponseCompressType()
optional .brpc.policy.SofaCompressType expected_response_compress_type = 301;
Set the response compress type of user expected.
Copyright © 2022 Baidu, Inc.. All rights reserved.