Beispiel #1
0
 @Override
 public RedactedExtension redact(RedactedExtension value) {
   Builder builder = value.newBuilder();
   builder.d = null;
   builder.clearUnknownFields();
   return builder.build();
 }
Beispiel #2
0
 @Override
 public Foos redact(Foos value) {
   Builder builder = value.newBuilder();
   redactElements(builder.foos, Foo.ADAPTER);
   builder.clearUnknownFields();
   return builder.build();
 }
Beispiel #3
0
 @Override
 public MethodOptions redact(MethodOptions value) {
   Builder builder = value.newBuilder();
   Internal.redactElements(builder.uninterpreted_option, UninterpretedOption.ADAPTER);
   builder.clearUnknownFields();
   return builder.build();
 }
Beispiel #4
0
 @Override
 public RedactedChild redact(RedactedChild value) {
   Builder builder = value.newBuilder();
   if (builder.b != null) builder.b = Redacted.ADAPTER.redact(builder.b);
   if (builder.c != null) builder.c = NotRedacted.ADAPTER.redact(builder.c);
   builder.clearUnknownFields();
   return builder.build();
 }
Beispiel #5
0
 @Override
 public A redact(A value) {
   Builder builder = value.newBuilder();
   if (builder.c != null) builder.c = B.ADAPTER.redact(builder.c);
   if (builder.d != null) builder.d = D.ADAPTER.redact(builder.d);
   builder.clearUnknownFields();
   return builder.build();
 }
Beispiel #6
0
 @Override
 public FieldDescriptorProto redact(FieldDescriptorProto value) {
   Builder builder = value.newBuilder();
   if (builder.options != null)
     builder.options = FieldOptions.ADAPTER.redact(builder.options);
   builder.clearUnknownFields();
   return builder.build();
 }
Beispiel #7
0
 @Override
 public FooBar redact(FooBar value) {
   Builder builder = value.newBuilder();
   if (builder.baz != null) builder.baz = Nested.ADAPTER.redact(builder.baz);
   WireInternal.redactElements(builder.nested, FooBar.ADAPTER);
   builder.clearUnknownFields();
   return builder.build();
 }
Beispiel #8
0
 @Override
 public DescriptorProto redact(DescriptorProto value) {
   Builder builder = value.newBuilder();
   redactElements(builder.field, FieldDescriptorProto.ADAPTER);
   redactElements(builder.extension, FieldDescriptorProto.ADAPTER);
   redactElements(builder.nested_type, DescriptorProto.ADAPTER);
   redactElements(builder.enum_type, EnumDescriptorProto.ADAPTER);
   redactElements(builder.extension_range, ExtensionRange.ADAPTER);
   if (builder.options != null)
     builder.options = MessageOptions.ADAPTER.redact(builder.options);
   builder.clearUnknownFields();
   return builder.build();
 }
Beispiel #9
0
 @Override
 public Phone redact(Phone value) {
   Builder builder = value.newBuilder();
   builder.clearUnknownFields();
   return builder.build();
 }
Beispiel #10
0
 @Override
 public Nested redact(Nested value) {
   Builder builder = value.newBuilder();
   builder.clearUnknownFields();
   return builder.build();
 }
 @Override
 public SendDataRequest redact(SendDataRequest value) {
   Builder builder = value.newBuilder();
   builder.clearUnknownFields();
   return builder.build();
 }