当前位置: 首页>>代码示例>>Java>>正文


Java Internal.redactElements方法代码示例

本文整理汇总了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();
}
 
开发者ID:yyued,项目名称:SVGAPlayer-Android,代码行数:10,代码来源:FrameEntity.java

示例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();
}
 
开发者ID:yyued,项目名称:SVGAPlayer-Android,代码行数:9,代码来源:MovieEntity.java

示例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();
}
 
开发者ID:yyued,项目名称:SVGAPlayer-Android,代码行数:8,代码来源:SpriteEntity.java

示例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();
}
 
开发者ID:NightscoutFoundation,项目名称:xDrip,代码行数:8,代码来源:BgReadingMultiMessage.java

示例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();
}
 
开发者ID:NightscoutFoundation,项目名称:xDrip,代码行数:8,代码来源:BloodTestMultiMessage.java

示例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();
}
 
开发者ID:square,项目名称:wire,代码行数:8,代码来源:Mappy.java

示例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();
}
 
开发者ID:square,项目名称:wire,代码行数:14,代码来源:AllTypes.java

示例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();
}
 
开发者ID:square,项目名称:wire,代码行数:9,代码来源:RedactedRepeated.java

示例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();
}
 
开发者ID:square,项目名称:wire,代码行数:8,代码来源:Foos.java

示例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();
}
 
开发者ID:square,项目名称:wire,代码行数:8,代码来源:Bars.java

示例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();
}
 
开发者ID:square,项目名称:wire,代码行数:8,代码来源:Person.java

示例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();
}
 
开发者ID:square,项目名称:wire,代码行数:8,代码来源:EnumOptions.java

示例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();
}
 
开发者ID:square,项目名称:wire,代码行数:8,代码来源:ServiceOptions.java

示例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();
}
 
开发者ID:square,项目名称:wire,代码行数:13,代码来源:MessageOptions.java

示例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();
}
 
开发者ID:square,项目名称:wire,代码行数:8,代码来源:FileOptions.java


注:本文中的com.squareup.wire.internal.Internal.redactElements方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。