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 int
private com.google.protobuf.SingleFieldBuilder
<ExtensionRequest, ExtensionRequest.Builder, ExtensionRequestOrBuilder> private Object
private Object
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(ServerReflectionRequest result) private void
clear()
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.ByteString
Finds 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.Descriptor
com.google.protobuf.Descriptors.Descriptor
Find a proto file by the file name.com.google.protobuf.ByteString
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 which defines an extension extending the given message type with the given field number.private 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.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.ByteString
Find the proto file that declares the given fully-qualified symbol name.getHost()
string host = 1;
com.google.protobuf.ByteString
string host = 1;
List the full names of registered services.com.google.protobuf.ByteString
List the full names of registered services.boolean
Finds the tag numbers used by all known extensions of extendee_type, and appends them to ExtensionNumberResponse in an undefined order.boolean
Find a proto file by the file name.boolean
Find the proto file which defines an extension extending the given message type with the given field number.boolean
Find the proto file that declares the given fully-qualified symbol name.boolean
List the full names of registered services.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
Find 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, 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
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<ServerReflectionRequest.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<ServerReflectionRequest.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<ServerReflectionRequest.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
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServerReflectionRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServerReflectionRequest.Builder>
- Throws:
IOException
-
getMessageRequestCase
- Specified by:
getMessageRequestCase
in interfaceServerReflectionRequestOrBuilder
-
clearMessageRequest
-
getHost
string host = 1;
- Specified by:
getHost
in interfaceServerReflectionRequestOrBuilder
- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()string host = 1;
- Specified by:
getHostBytes
in 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:
hasFileByFilename
in interfaceServerReflectionRequestOrBuilder
- Returns:
- Whether the fileByFilename field is set.
-
getFileByFilename
Find a proto file by the file name.
string file_by_filename = 3;
- Specified by:
getFileByFilename
in 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:
getFileByFilenameBytes
in 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:
hasFileContainingSymbol
in 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:
getFileContainingSymbol
in 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:
getFileContainingSymbolBytes
in 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:
hasFileContainingExtension
in 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:
getFileContainingExtension
in 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:
getFileContainingExtensionOrBuilder
in interfaceServerReflectionRequestOrBuilder
-
getFileContainingExtensionFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ExtensionRequest,ExtensionRequest.Builder, getFileContainingExtensionFieldBuilder()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:
hasAllExtensionNumbersOfType
in 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:
getAllExtensionNumbersOfType
in 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:
getAllExtensionNumbersOfTypeBytes
in 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:
hasListServices
in 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:
getListServices
in 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:
getListServicesBytes
in 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.
-