Deprecated API
Contents
-
Deprecated InterfacesInterfaceDescriptionThis class is deprecated, and slated for removal in the next Java breaking change (5.x). Users should update gencode to >= 4.26.x which uses GeneratedMessage.ExtendableMessageOrBuilder.
-
Deprecated ClassesClassDescriptionThis class is deprecated, and slated for removal in the next Java breaking change (5.x). Users should update gencode to >= 4.26.x which uses GeneratedMessage instead.This class is deprecated, and slated for removal in the next Java breaking change (5.x). Users should update gencode to >= 4.26.x which uses GeneratedMessage.Builder instead.This class is deprecated, and slated for removal in the next Java breaking change (5.x). Users should update gencode to >= 4.26.x which uses GeneratedMessage.ExtendableBuilder instead.This class is deprecated, and slated for removal in the next Java breaking change (5.x). Users should update gencode to >= 4.26.x which uses GeneratedMessage.ExtendableMessage.This class is deprecated, and slated for removal in the next Java breaking change (5.x). Users should update gencode to >= 4.26.x which uses GeneratedMessage.ExtendableMessage.ExtensionWriter instead.This class is deprecated, and slated for removal in the next Java breaking change (5.x). Users should update gencode to >= 4.26.x which uses GeneratedMessage.FieldAccessorTable instead.This method is deprecated, and slated for removal in the next Java breaking change (5.x). Users should update gencode to >= 4.26.x which uses GeneratedMessage.UnusedPrivateParameter instead.This class is deprecated, and slated for removal in the next breaking change. Users should update gencode to >= 4.26.x which replaces RepeatedFieldBuilderV3 with RepeatedFieldBuilder.This class is deprecated, and slated for removal in the next breaking change. Users should update gencode to >= 4.26.x which replaces SingleFieldBuilderV3 with SingleFieldBuilder.Use
new FixedResultPicker(PickResult.withError(error))
instead.Of questionable utility and generally not used.
-
Deprecated Exception ClassesException ClassDescriptionThis exception is unused and will be removed in the next breaking release (v5.x.x).
-
Deprecated Record Classes
-
Deprecated FieldsFieldDescriptionUse
new FixedResultPicker(PickResult.withNoResult())
instead.
-
Deprecated MethodsMethodDescriptiongoogle.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.FileOptions.java_generate_equals_and_hash is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder.getDeprecatedLegacyJsonFieldConflicts()google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder.hasDeprecatedLegacyJsonFieldConflicts()google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=0use newBuilder().mergeFrom() insteadcom.google.protobuf.GeneratedMessageV3.Builder.addRepeatedField
(Descriptors.FieldDescriptor, Object) Usethis.emittingSingleLine(true).printFieldToString(FieldDescriptor, Object)
Usethis.printer().emittingSingleLine(true).printToString(MessageOrBuilder)
Usethis.emittingSingleLine(true).printToString(UnknownFieldSet)
Useprinter().emittingSingleLine(true).printToString(MessageOrBuilder)
This method is deprecated, and slated for removal in the next Java breaking change (5.x). PreferJsonFormat.Printer.alwaysPrintFieldsWithNoPresence()
Replace withDataResource.of(String, MediaType)
Replace withDataResource.of(String)
UsePredicatesObjects.get(String, Class)
instead.useAttributes.Key.create(java.lang.String)
instead. This method will be removed in the future.This method is being considered for removal, if you feel this method is needed please reach out on this Github issue: grpc-java/issues/1764.UseAttributes.toBuilder()
on theAttributes
instance instead. This method will be removed in the future.UseCallOptions.Key.create(java.lang.String)
orCallOptions.Key.createWithDefault(java.lang.String, T)
instead. This method will be removed.This method violates some GRPC class encapsulation and should not be used. If you must know whether a Context is the current context, check whether it is the same object returned byContext.current()
.As of 1.60.0, useForwardingChannelBuilder2
instead.This method will be removed. Stop overriding it. Instead, passLoadBalancer.SubchannelStateListener
toLoadBalancer.Subchannel.start(io.grpc.LoadBalancer.SubchannelStateListener)
to receive Subchannel state updatesWarning has been removedoverrideLoadBalancer.requestConnection()
instead.Most usages should use a globally-registeredNameResolverProvider
instead, with either the SPI mechanism orNameResolverRegistry.register(io.grpc.NameResolverProvider)
. Replacements for all use-cases are not necessarily available yet. See #7133.This will be removed in 1.22.0Will be superseded by setAddressesOrErrorWill be superseded by getAddressesOrErrorUse the two argument method instead.UseNettyChannelBuilder.maxInboundMetadataSize(int)
insteadUseNettyServerBuilder.maxInboundMetadataSize(int)
insteadCallNettyServerBuilder.maxInboundMessageSize(int)
instead. This method will be removed in a future release.ImplementServerStreamTracer.serverCallStarted(ServerCallInfo)
instead. This method will be removed in a future release of gRPC.UseparseLoadBalancingPolicyConfig()
and pass the configuration toLoadBalancer.ResolvedAddresses.Builder.setLoadBalancingPolicyConfig(java.lang.Object)
-
Deprecated ConstructorsConstructorDescriptionThe static factory method should be preferred.