本文整理汇总了Java中com.squareup.wire.internal.Internal.redactElements方法的典型用法代码示例。如果您正苦于以下问题:Java Internal.redactElements方法的具体用法?Java Internal.redactElements怎么用?Java Internal.redactElements使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.squareup.wire.internal.Internal
的用法示例。
在下文中一共展示了Internal.redactElements方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: redact
import com.squareup.wire.internal.Internal; //导入方法依赖的package包/类
@Override
public FrameEntity redact(FrameEntity value) {
Builder builder = value.newBuilder();
if (builder.layout != null) builder.layout = Layout.ADAPTER.redact(builder.layout);
if (builder.transform != null) builder.transform = Transform.ADAPTER.redact(builder.transform);
Internal.redactElements(builder.shapes, ShapeEntity.ADAPTER);
builder.clearUnknownFields();
return builder.build();
}
示例2: redact
import com.squareup.wire.internal.Internal; //导入方法依赖的package包/类
@Override
public MovieEntity redact(MovieEntity value) {
Builder builder = value.newBuilder();
if (builder.params != null) builder.params = MovieParams.ADAPTER.redact(builder.params);
Internal.redactElements(builder.sprites, SpriteEntity.ADAPTER);
builder.clearUnknownFields();
return builder.build();
}
示例3: redact
import com.squareup.wire.internal.Internal; //导入方法依赖的package包/类
@Override
public SpriteEntity redact(SpriteEntity value) {
Builder builder = value.newBuilder();
Internal.redactElements(builder.frames, FrameEntity.ADAPTER);
builder.clearUnknownFields();
return builder.build();
}
示例4: redact
import com.squareup.wire.internal.Internal; //导入方法依赖的package包/类
@Override
public BgReadingMultiMessage redact(BgReadingMultiMessage value) {
Builder builder = value.newBuilder();
Internal.redactElements(builder.bgreading_message, BgReadingMessage.ADAPTER);
builder.clearUnknownFields();
return builder.build();
}
示例5: redact
import com.squareup.wire.internal.Internal; //导入方法依赖的package包/类
@Override
public BloodTestMultiMessage redact(BloodTestMultiMessage value) {
Builder builder = value.newBuilder();
Internal.redactElements(builder.bloodtest_message, BloodTestMessage.ADAPTER);
builder.clearUnknownFields();
return builder.build();
}
示例6: redact
import com.squareup.wire.internal.Internal; //导入方法依赖的package包/类
@Override
public Mappy redact(Mappy value) {
Builder builder = value.newBuilder();
Internal.redactElements(builder.things, Thing.ADAPTER);
builder.clearUnknownFields();
return builder.build();
}
示例7: redact
import com.squareup.wire.internal.Internal; //导入方法依赖的package包/类
@Override
public AllTypes redact(AllTypes value) {
Builder builder = value.newBuilder();
if (builder.opt_nested_message != null) builder.opt_nested_message = NestedMessage.ADAPTER.redact(builder.opt_nested_message);
builder.req_nested_message = NestedMessage.ADAPTER.redact(builder.req_nested_message);
Internal.redactElements(builder.rep_nested_message, NestedMessage.ADAPTER);
Internal.redactElements(builder.map_string_message, NestedMessage.ADAPTER);
if (builder.ext_opt_nested_message != null) builder.ext_opt_nested_message = NestedMessage.ADAPTER.redact(builder.ext_opt_nested_message);
Internal.redactElements(builder.ext_rep_nested_message, NestedMessage.ADAPTER);
Internal.redactElements(builder.ext_map_string_message, NestedMessage.ADAPTER);
builder.clearUnknownFields();
return builder.build();
}
示例8: redact
import com.squareup.wire.internal.Internal; //导入方法依赖的package包/类
@Override
public RedactedRepeated redact(RedactedRepeated value) {
Builder builder = value.newBuilder();
builder.a = Collections.emptyList();
Internal.redactElements(builder.b, Redacted.ADAPTER);
builder.clearUnknownFields();
return builder.build();
}
示例9: redact
import com.squareup.wire.internal.Internal; //导入方法依赖的package包/类
@Override
public Foos redact(Foos value) {
Builder builder = value.newBuilder();
Internal.redactElements(builder.foos, Foo.ADAPTER);
builder.clearUnknownFields();
return builder.build();
}
示例10: redact
import com.squareup.wire.internal.Internal; //导入方法依赖的package包/类
@Override
public Bars redact(Bars value) {
Builder builder = value.newBuilder();
Internal.redactElements(builder.bars, Bar.ADAPTER);
builder.clearUnknownFields();
return builder.build();
}
示例11: redact
import com.squareup.wire.internal.Internal; //导入方法依赖的package包/类
@Override
public Person redact(Person value) {
Builder builder = value.newBuilder();
Internal.redactElements(builder.phone, PhoneNumber.ADAPTER);
builder.clearUnknownFields();
return builder.build();
}
示例12: redact
import com.squareup.wire.internal.Internal; //导入方法依赖的package包/类
@Override
public EnumOptions redact(EnumOptions value) {
Builder builder = value.newBuilder();
Internal.redactElements(builder.uninterpreted_option, UninterpretedOption.ADAPTER);
builder.clearUnknownFields();
return builder.build();
}
示例13: redact
import com.squareup.wire.internal.Internal; //导入方法依赖的package包/类
@Override
public ServiceOptions redact(ServiceOptions value) {
Builder builder = value.newBuilder();
Internal.redactElements(builder.uninterpreted_option, UninterpretedOption.ADAPTER);
builder.clearUnknownFields();
return builder.build();
}
示例14: redact
import com.squareup.wire.internal.Internal; //导入方法依赖的package包/类
@Override
public MessageOptions redact(MessageOptions value) {
Builder builder = value.newBuilder();
Internal.redactElements(builder.uninterpreted_option, UninterpretedOption.ADAPTER);
if (builder.my_message_option_one != null) builder.my_message_option_one = FooBar.ADAPTER.redact(builder.my_message_option_one);
if (builder.my_message_option_three != null) builder.my_message_option_three = FooBar.ADAPTER.redact(builder.my_message_option_three);
if (builder.my_message_option_five != null) builder.my_message_option_five = FooBar.ADAPTER.redact(builder.my_message_option_five);
if (builder.my_message_option_six != null) builder.my_message_option_six = FooBar.ADAPTER.redact(builder.my_message_option_six);
if (builder.foreign_message_option != null) builder.foreign_message_option = ForeignMessage.ADAPTER.redact(builder.foreign_message_option);
builder.clearUnknownFields();
return builder.build();
}
示例15: redact
import com.squareup.wire.internal.Internal; //导入方法依赖的package包/类
@Override
public FileOptions redact(FileOptions value) {
Builder builder = value.newBuilder();
Internal.redactElements(builder.uninterpreted_option, UninterpretedOption.ADAPTER);
builder.clearUnknownFields();
return builder.build();
}