Package io.grpc.reflection.v1
Class ServerReflectionRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
io.grpc.reflection.v1.ServerReflectionRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ServerReflectionRequestOrBuilder,Cloneable
- Enclosing class:
- ServerReflectionRequest
public static final class ServerReflectionRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
implements ServerReflectionRequestOrBuilder
The message sent by the client when calling ServerReflectionInfo method.Protobuf type
grpc.reflection.v1.ServerReflectionRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Finds the tag numbers used by all known extensions of the given message type, and appends them to ExtensionNumberResponse in an undefined order.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Find a proto file by the file name.Find the proto file which defines an extension extending the given message type with the given field number.Find the proto file that declares the given fully-qualified symbol name.string host = 1;List the full names of registered services.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()Finds the tag numbers used by all known extensions of the given message type, and appends them to ExtensionNumberResponse in an undefined order.com.google.protobuf.ByteStringFinds the tag numbers used by all known extensions of the given message type, and appends them to ExtensionNumberResponse in an undefined order.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorFind a proto file by the file name.com.google.protobuf.ByteStringFind a proto file by the file name.Find the proto file which defines an extension extending the given message type with the given field number.Find the proto file which defines an extension extending the given message type with the given field number.Find the proto file which defines an extension extending the given message type with the given field number.Find the proto file that declares the given fully-qualified symbol name.com.google.protobuf.ByteStringFind the proto file that declares the given fully-qualified symbol name.getHost()string host = 1;com.google.protobuf.ByteStringstring host = 1;List the full names of registered services.com.google.protobuf.ByteStringList the full names of registered services.booleanFinds the tag numbers used by all known extensions of the given message type, and appends them to ExtensionNumberResponse in an undefined order.booleanFind a proto file by the file name.booleanFind the proto file which defines an extension extending the given message type with the given field number.booleanFind the proto file that declares the given fully-qualified symbol name.booleanList the full names of registered services.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanFind the proto file which defines an extension extending the given message type with the given field number.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ServerReflectionRequest other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Finds the tag numbers used by all known extensions of the given message type, and appends them to ExtensionNumberResponse in an undefined order.setAllExtensionNumbersOfTypeBytes(com.google.protobuf.ByteString value) Finds the tag numbers used by all known extensions of the given message type, and appends them to ExtensionNumberResponse in an undefined order.setFileByFilename(String value) Find a proto file by the file name.setFileByFilenameBytes(com.google.protobuf.ByteString value) Find a proto file by the file name.Find the proto file which defines an extension extending the given message type with the given field number.setFileContainingExtension(ExtensionRequest.Builder builderForValue) Find the proto file which defines an extension extending the given message type with the given field number.setFileContainingSymbol(String value) Find the proto file that declares the given fully-qualified symbol name.setFileContainingSymbolBytes(com.google.protobuf.ByteString value) Find the proto file that declares the given fully-qualified symbol name.string host = 1;setHostBytes(com.google.protobuf.ByteString value) string host = 1;setListServices(String value) List the full names of registered services.setListServicesBytes(com.google.protobuf.ByteString value) List the full names of registered services.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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 java.lang.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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.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.GeneratedMessageV3.Builder<ServerReflectionRequest.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
-
setField
public ServerReflectionRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
-
clearField
public ServerReflectionRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
-
clearOneof
public ServerReflectionRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
-
setRepeatedField
public ServerReflectionRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
-
addRepeatedField
public ServerReflectionRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServerReflectionRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
-
mergeFrom
public ServerReflectionRequest.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<ServerReflectionRequest.Builder>- Throws:
IOException
-
getMessageRequestCase
- Specified by:
getMessageRequestCasein interfaceServerReflectionRequestOrBuilder
-
clearMessageRequest
-
getHost
string host = 1;- Specified by:
getHostin interfaceServerReflectionRequestOrBuilder- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()string host = 1;- Specified by:
getHostBytesin interfaceServerReflectionRequestOrBuilder- Returns:
- The bytes for host.
-
setHost
string host = 1;- Parameters:
value- The host to set.- Returns:
- This builder for chaining.
-
clearHost
string host = 1;- Returns:
- This builder for chaining.
-
setHostBytes
string host = 1;- Parameters:
value- The bytes for host to set.- Returns:
- This builder for chaining.
-
hasFileByFilename
public boolean hasFileByFilename()Find a proto file by the file name.
string file_by_filename = 3;- Specified by:
hasFileByFilenamein interfaceServerReflectionRequestOrBuilder- Returns:
- Whether the fileByFilename field is set.
-
getFileByFilename
Find a proto file by the file name.
string file_by_filename = 3;- Specified by:
getFileByFilenamein interfaceServerReflectionRequestOrBuilder- Returns:
- The fileByFilename.
-
getFileByFilenameBytes
public com.google.protobuf.ByteString getFileByFilenameBytes()Find a proto file by the file name.
string file_by_filename = 3;- Specified by:
getFileByFilenameBytesin interfaceServerReflectionRequestOrBuilder- Returns:
- The bytes for fileByFilename.
-
setFileByFilename
Find a proto file by the file name.
string file_by_filename = 3;- Parameters:
value- The fileByFilename to set.- Returns:
- This builder for chaining.
-
clearFileByFilename
Find a proto file by the file name.
string file_by_filename = 3;- Returns:
- This builder for chaining.
-
setFileByFilenameBytes
Find a proto file by the file name.
string file_by_filename = 3;- Parameters:
value- The bytes for fileByFilename to set.- Returns:
- This builder for chaining.
-
hasFileContainingSymbol
public boolean hasFileContainingSymbol()Find the proto file that declares the given fully-qualified symbol name. This field should be a fully-qualified symbol name (e.g. <package>.<service>[.<method>] or <package>.<type>).
string file_containing_symbol = 4;- Specified by:
hasFileContainingSymbolin interfaceServerReflectionRequestOrBuilder- Returns:
- Whether the fileContainingSymbol field is set.
-
getFileContainingSymbol
Find the proto file that declares the given fully-qualified symbol name. This field should be a fully-qualified symbol name (e.g. <package>.<service>[.<method>] or <package>.<type>).
string file_containing_symbol = 4;- Specified by:
getFileContainingSymbolin interfaceServerReflectionRequestOrBuilder- Returns:
- The fileContainingSymbol.
-
getFileContainingSymbolBytes
public com.google.protobuf.ByteString getFileContainingSymbolBytes()Find the proto file that declares the given fully-qualified symbol name. This field should be a fully-qualified symbol name (e.g. <package>.<service>[.<method>] or <package>.<type>).
string file_containing_symbol = 4;- Specified by:
getFileContainingSymbolBytesin interfaceServerReflectionRequestOrBuilder- Returns:
- The bytes for fileContainingSymbol.
-
setFileContainingSymbol
Find the proto file that declares the given fully-qualified symbol name. This field should be a fully-qualified symbol name (e.g. <package>.<service>[.<method>] or <package>.<type>).
string file_containing_symbol = 4;- Parameters:
value- The fileContainingSymbol to set.- Returns:
- This builder for chaining.
-
clearFileContainingSymbol
Find the proto file that declares the given fully-qualified symbol name. This field should be a fully-qualified symbol name (e.g. <package>.<service>[.<method>] or <package>.<type>).
string file_containing_symbol = 4;- Returns:
- This builder for chaining.
-
setFileContainingSymbolBytes
public ServerReflectionRequest.Builder setFileContainingSymbolBytes(com.google.protobuf.ByteString value) Find the proto file that declares the given fully-qualified symbol name. This field should be a fully-qualified symbol name (e.g. <package>.<service>[.<method>] or <package>.<type>).
string file_containing_symbol = 4;- Parameters:
value- The bytes for fileContainingSymbol to set.- Returns:
- This builder for chaining.
-
hasFileContainingExtension
public boolean hasFileContainingExtension()Find the proto file which defines an extension extending the given message type with the given field number.
.grpc.reflection.v1.ExtensionRequest file_containing_extension = 5;- Specified by:
hasFileContainingExtensionin interfaceServerReflectionRequestOrBuilder- Returns:
- Whether the fileContainingExtension field is set.
-
getFileContainingExtension
Find the proto file which defines an extension extending the given message type with the given field number.
.grpc.reflection.v1.ExtensionRequest file_containing_extension = 5;- Specified by:
getFileContainingExtensionin interfaceServerReflectionRequestOrBuilder- Returns:
- The fileContainingExtension.
-
setFileContainingExtension
Find the proto file which defines an extension extending the given message type with the given field number.
.grpc.reflection.v1.ExtensionRequest file_containing_extension = 5; -
setFileContainingExtension
public ServerReflectionRequest.Builder setFileContainingExtension(ExtensionRequest.Builder builderForValue) Find the proto file which defines an extension extending the given message type with the given field number.
.grpc.reflection.v1.ExtensionRequest file_containing_extension = 5; -
mergeFileContainingExtension
Find the proto file which defines an extension extending the given message type with the given field number.
.grpc.reflection.v1.ExtensionRequest file_containing_extension = 5; -
clearFileContainingExtension
Find the proto file which defines an extension extending the given message type with the given field number.
.grpc.reflection.v1.ExtensionRequest file_containing_extension = 5; -
getFileContainingExtensionBuilder
Find the proto file which defines an extension extending the given message type with the given field number.
.grpc.reflection.v1.ExtensionRequest file_containing_extension = 5; -
getFileContainingExtensionOrBuilder
Find the proto file which defines an extension extending the given message type with the given field number.
.grpc.reflection.v1.ExtensionRequest file_containing_extension = 5;- Specified by:
getFileContainingExtensionOrBuilderin interfaceServerReflectionRequestOrBuilder
-
hasAllExtensionNumbersOfType
public boolean hasAllExtensionNumbersOfType()Finds the tag numbers used by all known extensions of the given message type, and appends them to ExtensionNumberResponse in an undefined order. Its corresponding method is best-effort: it's not guaranteed that the reflection service will implement this method, and it's not guaranteed that this method will provide all extensions. Returns StatusCode::UNIMPLEMENTED if it's not implemented. This field should be a fully-qualified type name. The format is <package>.<type>
string all_extension_numbers_of_type = 6;- Specified by:
hasAllExtensionNumbersOfTypein interfaceServerReflectionRequestOrBuilder- Returns:
- Whether the allExtensionNumbersOfType field is set.
-
getAllExtensionNumbersOfType
Finds the tag numbers used by all known extensions of the given message type, and appends them to ExtensionNumberResponse in an undefined order. Its corresponding method is best-effort: it's not guaranteed that the reflection service will implement this method, and it's not guaranteed that this method will provide all extensions. Returns StatusCode::UNIMPLEMENTED if it's not implemented. This field should be a fully-qualified type name. The format is <package>.<type>
string all_extension_numbers_of_type = 6;- Specified by:
getAllExtensionNumbersOfTypein interfaceServerReflectionRequestOrBuilder- Returns:
- The allExtensionNumbersOfType.
-
getAllExtensionNumbersOfTypeBytes
public com.google.protobuf.ByteString getAllExtensionNumbersOfTypeBytes()Finds the tag numbers used by all known extensions of the given message type, and appends them to ExtensionNumberResponse in an undefined order. Its corresponding method is best-effort: it's not guaranteed that the reflection service will implement this method, and it's not guaranteed that this method will provide all extensions. Returns StatusCode::UNIMPLEMENTED if it's not implemented. This field should be a fully-qualified type name. The format is <package>.<type>
string all_extension_numbers_of_type = 6;- Specified by:
getAllExtensionNumbersOfTypeBytesin interfaceServerReflectionRequestOrBuilder- Returns:
- The bytes for allExtensionNumbersOfType.
-
setAllExtensionNumbersOfType
Finds the tag numbers used by all known extensions of the given message type, and appends them to ExtensionNumberResponse in an undefined order. Its corresponding method is best-effort: it's not guaranteed that the reflection service will implement this method, and it's not guaranteed that this method will provide all extensions. Returns StatusCode::UNIMPLEMENTED if it's not implemented. This field should be a fully-qualified type name. The format is <package>.<type>
string all_extension_numbers_of_type = 6;- Parameters:
value- The allExtensionNumbersOfType to set.- Returns:
- This builder for chaining.
-
clearAllExtensionNumbersOfType
Finds the tag numbers used by all known extensions of the given message type, and appends them to ExtensionNumberResponse in an undefined order. Its corresponding method is best-effort: it's not guaranteed that the reflection service will implement this method, and it's not guaranteed that this method will provide all extensions. Returns StatusCode::UNIMPLEMENTED if it's not implemented. This field should be a fully-qualified type name. The format is <package>.<type>
string all_extension_numbers_of_type = 6;- Returns:
- This builder for chaining.
-
setAllExtensionNumbersOfTypeBytes
public ServerReflectionRequest.Builder setAllExtensionNumbersOfTypeBytes(com.google.protobuf.ByteString value) Finds the tag numbers used by all known extensions of the given message type, and appends them to ExtensionNumberResponse in an undefined order. Its corresponding method is best-effort: it's not guaranteed that the reflection service will implement this method, and it's not guaranteed that this method will provide all extensions. Returns StatusCode::UNIMPLEMENTED if it's not implemented. This field should be a fully-qualified type name. The format is <package>.<type>
string all_extension_numbers_of_type = 6;- Parameters:
value- The bytes for allExtensionNumbersOfType to set.- Returns:
- This builder for chaining.
-
hasListServices
public boolean hasListServices()List the full names of registered services. The content will not be checked.
string list_services = 7;- Specified by:
hasListServicesin interfaceServerReflectionRequestOrBuilder- Returns:
- Whether the listServices field is set.
-
getListServices
List the full names of registered services. The content will not be checked.
string list_services = 7;- Specified by:
getListServicesin interfaceServerReflectionRequestOrBuilder- Returns:
- The listServices.
-
getListServicesBytes
public com.google.protobuf.ByteString getListServicesBytes()List the full names of registered services. The content will not be checked.
string list_services = 7;- Specified by:
getListServicesBytesin interfaceServerReflectionRequestOrBuilder- Returns:
- The bytes for listServices.
-
setListServices
List the full names of registered services. The content will not be checked.
string list_services = 7;- Parameters:
value- The listServices to set.- Returns:
- This builder for chaining.
-
clearListServices
List the full names of registered services. The content will not be checked.
string list_services = 7;- Returns:
- This builder for chaining.
-
setListServicesBytes
List the full names of registered services. The content will not be checked.
string list_services = 7;- Parameters:
value- The bytes for listServices to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ServerReflectionRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
-
mergeUnknownFields
public final ServerReflectionRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
-