Package io.grpc.reflection.v1alpha
Class ServerReflectionRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ServerReflectionRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<ServerReflectionRequest.Builder>
io.grpc.reflection.v1alpha.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.GeneratedMessage.Builder<ServerReflectionRequest.Builder>
implements ServerReflectionRequestOrBuilder
The message sent by the client when calling ServerReflectionInfo method.Protobuf type
grpc.reflection.v1alpha.ServerReflectionRequest-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate com.google.protobuf.SingleFieldBuilder<ExtensionRequest, ExtensionRequest.Builder, ExtensionRequestOrBuilder> private Objectprivate Objectprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(ServerReflectionRequest result) private voidclear()Finds the tag numbers used by all known extensions of extendee_type, and appends them to ExtensionNumberResponse in an undefined order.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.Finds the tag numbers used by all known extensions of extendee_type, and appends them to ExtensionNumberResponse in an undefined order.com.google.protobuf.ByteStringFinds the tag numbers used by all known extensions of extendee_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 extendee_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.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<ExtensionRequest, ExtensionRequest.Builder, ExtensionRequestOrBuilder> Find the proto file which defines an extension extending the given message type with the given field number.final 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) Finds the tag numbers used by all known extensions of extendee_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 extendee_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.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 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
-
Field Details
-
messageRequestCase_
private int messageRequestCase_ -
messageRequest_
-
bitField0_
private int bitField0_ -
host_
-
fileContainingExtensionBuilder_
private com.google.protobuf.SingleFieldBuilder<ExtensionRequest,ExtensionRequest.Builder, fileContainingExtensionBuilder_ExtensionRequestOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
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<ServerReflectionRequest.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<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.GeneratedMessage.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
-
buildPartial0
-
buildPartialOneofs
-
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.GeneratedMessage.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.ExtensionRequest file_containing_extension = 5;- Specified by:
getFileContainingExtensionOrBuilderin interfaceServerReflectionRequestOrBuilder
-
internalGetFileContainingExtensionFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ExtensionRequest,ExtensionRequest.Builder, internalGetFileContainingExtensionFieldBuilder()ExtensionRequestOrBuilder> Find the proto file which defines an extension extending the given message type with the given field number.
.grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5; -
hasAllExtensionNumbersOfType
public boolean hasAllExtensionNumbersOfType()Finds the tag numbers used by all known extensions of extendee_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 extendee_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 extendee_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 extendee_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 extendee_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 extendee_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.
-