本文整理汇总了Java中com.squareup.wire.internal.Internal类的典型用法代码示例。如果您正苦于以下问题:Java Internal类的具体用法?Java Internal怎么用?Java Internal使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Internal类属于com.squareup.wire.internal包,在下文中一共展示了Internal类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: equals
import com.squareup.wire.internal.Internal; //导入依赖的package包/类
@Override
public boolean equals(Object other) {
if (other == this) return true;
if (!(other instanceof ShapeStyle)) return false;
ShapeStyle o = (ShapeStyle) other;
return unknownFields().equals(o.unknownFields())
&& Internal.equals(fill, o.fill)
&& Internal.equals(stroke, o.stroke)
&& Internal.equals(strokeWidth, o.strokeWidth)
&& Internal.equals(lineCap, o.lineCap)
&& Internal.equals(lineJoin, o.lineJoin)
&& Internal.equals(miterLimit, o.miterLimit)
&& Internal.equals(lineDashI, o.lineDashI)
&& Internal.equals(lineDashII, o.lineDashII)
&& Internal.equals(lineDashIII, o.lineDashIII);
}
示例2: equals
import com.squareup.wire.internal.Internal; //导入依赖的package包/类
@Override
public boolean equals(Object other) {
if (other == this) return true;
if (!(other instanceof FieldOptions)) return false;
FieldOptions o = (FieldOptions) other;
return unknownFields().equals(o.unknownFields())
&& Internal.equals(ctype, o.ctype)
&& Internal.equals(packed, o.packed)
&& Internal.equals(jstype, o.jstype)
&& Internal.equals(lazy, o.lazy)
&& Internal.equals(deprecated, o.deprecated)
&& Internal.equals(weak, o.weak)
&& uninterpreted_option.equals(o.uninterpreted_option)
&& Internal.equals(my_field_option_one, o.my_field_option_one)
&& Internal.equals(my_field_option_two, o.my_field_option_two)
&& Internal.equals(my_field_option_three, o.my_field_option_three)
&& Internal.equals(my_field_option_four, o.my_field_option_four)
&& Internal.equals(squareup_protos_extension_collision_1_a, o.squareup_protos_extension_collision_1_a)
&& Internal.equals(b, o.b)
&& Internal.equals(squareup_protos_extension_collision_2_a, o.squareup_protos_extension_collision_2_a)
&& Internal.equals(c, o.c)
&& Internal.equals(redacted, o.redacted);
}
示例3: newBuilder
import com.squareup.wire.internal.Internal; //导入依赖的package包/类
@Override
public Builder newBuilder() {
Builder builder = new Builder();
builder.java_package = java_package;
builder.java_outer_classname = java_outer_classname;
builder.java_multiple_files = java_multiple_files;
builder.java_generate_equals_and_hash = java_generate_equals_and_hash;
builder.java_string_check_utf8 = java_string_check_utf8;
builder.optimize_for = optimize_for;
builder.go_package = go_package;
builder.cc_generic_services = cc_generic_services;
builder.java_generic_services = java_generic_services;
builder.py_generic_services = py_generic_services;
builder.deprecated = deprecated;
builder.cc_enable_arenas = cc_enable_arenas;
builder.objc_class_prefix = objc_class_prefix;
builder.csharp_namespace = csharp_namespace;
builder.uninterpreted_option = Internal.copyOf("uninterpreted_option", uninterpreted_option);
builder.addUnknownFields(unknownFields());
return builder;
}
示例4: newBuilder
import com.squareup.wire.internal.Internal; //导入依赖的package包/类
@Override
public Builder newBuilder() {
Builder builder = new Builder();
builder.ctype = ctype;
builder.packed = packed;
builder.jstype = jstype;
builder.lazy = lazy;
builder.deprecated = deprecated;
builder.weak = weak;
builder.uninterpreted_option = Internal.copyOf("uninterpreted_option", uninterpreted_option);
builder.my_field_option_one = my_field_option_one;
builder.my_field_option_two = my_field_option_two;
builder.my_field_option_three = my_field_option_three;
builder.my_field_option_four = my_field_option_four;
builder.squareup_protos_extension_collision_1_a = squareup_protos_extension_collision_1_a;
builder.b = b;
builder.squareup_protos_extension_collision_2_a = squareup_protos_extension_collision_2_a;
builder.c = c;
builder.redacted = redacted;
builder.addUnknownFields(unknownFields());
return builder;
}
示例5: equals
import com.squareup.wire.internal.Internal; //导入依赖的package包/类
@Override
public boolean equals(Object other) {
if (other == this) return true;
if (!(other instanceof MessageOptions)) return false;
MessageOptions o = (MessageOptions) other;
return unknownFields().equals(o.unknownFields())
&& Internal.equals(message_set_wire_format, o.message_set_wire_format)
&& Internal.equals(no_standard_descriptor_accessor, o.no_standard_descriptor_accessor)
&& Internal.equals(deprecated, o.deprecated)
&& Internal.equals(map_entry, o.map_entry)
&& uninterpreted_option.equals(o.uninterpreted_option)
&& Internal.equals(my_message_option_one, o.my_message_option_one)
&& Internal.equals(my_message_option_two, o.my_message_option_two)
&& Internal.equals(my_message_option_three, o.my_message_option_three)
&& Internal.equals(my_message_option_four, o.my_message_option_four)
&& Internal.equals(my_message_option_five, o.my_message_option_five)
&& Internal.equals(my_message_option_six, o.my_message_option_six)
&& Internal.equals(foreign_message_option, o.foreign_message_option);
}
示例6: SimpleMessage
import com.squareup.wire.internal.Internal; //导入依赖的package包/类
public SimpleMessage(Integer optional_int32, NestedMessage optional_nested_msg,
ExternalMessage optional_external_msg, NestedEnum default_nested_enum, Integer required_int32,
List<Double> repeated_double, ForeignEnum default_foreign_enum,
ForeignEnum no_default_foreign_enum, String package_, String result, String other, String o,
ByteString unknownFields) {
super(ADAPTER, unknownFields);
this.optional_int32 = optional_int32;
this.optional_nested_msg = optional_nested_msg;
this.optional_external_msg = optional_external_msg;
this.default_nested_enum = default_nested_enum;
this.required_int32 = required_int32;
this.repeated_double = Internal.immutableCopyOf("repeated_double", repeated_double);
this.default_foreign_enum = default_foreign_enum;
this.no_default_foreign_enum = no_default_foreign_enum;
this.package_ = package_;
this.result = result;
this.other = other;
this.o = o;
}
示例7: newBuilder
import com.squareup.wire.internal.Internal; //导入依赖的package包/类
@Override
public Builder newBuilder() {
Builder builder = new Builder();
builder.optional_int32 = optional_int32;
builder.optional_nested_msg = optional_nested_msg;
builder.optional_external_msg = optional_external_msg;
builder.default_nested_enum = default_nested_enum;
builder.required_int32 = required_int32;
builder.repeated_double = Internal.copyOf("repeated_double", repeated_double);
builder.default_foreign_enum = default_foreign_enum;
builder.no_default_foreign_enum = no_default_foreign_enum;
builder.package_ = package_;
builder.result = result;
builder.other = other;
builder.o = o;
builder.addUnknownFields(unknownFields());
return builder;
}
示例8: equals
import com.squareup.wire.internal.Internal; //导入依赖的package包/类
@Override
public boolean equals(Object other_) {
if (other_ == this) return true;
if (!(other_ instanceof SimpleMessage)) return false;
SimpleMessage o_ = (SimpleMessage) other_;
return unknownFields().equals(o_.unknownFields())
&& Internal.equals(optional_int32, o_.optional_int32)
&& Internal.equals(optional_nested_msg, o_.optional_nested_msg)
&& Internal.equals(optional_external_msg, o_.optional_external_msg)
&& Internal.equals(default_nested_enum, o_.default_nested_enum)
&& required_int32.equals(o_.required_int32)
&& repeated_double.equals(o_.repeated_double)
&& Internal.equals(default_foreign_enum, o_.default_foreign_enum)
&& Internal.equals(no_default_foreign_enum, o_.no_default_foreign_enum)
&& Internal.equals(package_, o_.package_)
&& Internal.equals(result, o_.result)
&& Internal.equals(other, o_.other)
&& Internal.equals(o, o_.o);
}
示例9: FieldOptions
import com.squareup.wire.internal.Internal; //导入依赖的package包/类
public FieldOptions(CType ctype, Boolean packed, JSType jstype, Boolean lazy, Boolean deprecated,
Boolean weak, List<UninterpretedOption> uninterpreted_option, Integer my_field_option_one,
Float my_field_option_two, FooBar.FooBarBazEnum my_field_option_three,
FooBar my_field_option_four, String squareup_protos_extension_collision_1_a, String b,
String squareup_protos_extension_collision_2_a, String c, Boolean redacted,
ByteString unknownFields) {
super(ADAPTER, unknownFields);
this.ctype = ctype;
this.packed = packed;
this.jstype = jstype;
this.lazy = lazy;
this.deprecated = deprecated;
this.weak = weak;
this.uninterpreted_option = Internal.immutableCopyOf("uninterpreted_option", uninterpreted_option);
this.my_field_option_one = my_field_option_one;
this.my_field_option_two = my_field_option_two;
this.my_field_option_three = my_field_option_three;
this.my_field_option_four = my_field_option_four;
this.squareup_protos_extension_collision_1_a = squareup_protos_extension_collision_1_a;
this.b = b;
this.squareup_protos_extension_collision_2_a = squareup_protos_extension_collision_2_a;
this.c = c;
this.redacted = redacted;
}
示例10: newBuilder
import com.squareup.wire.internal.Internal; //导入依赖的package包/类
@Override
public Builder newBuilder() {
Builder builder = new Builder();
builder.name = name;
builder.field = Internal.copyOf("field", field);
builder.extension = Internal.copyOf("extension", extension);
builder.nested_type = Internal.copyOf("nested_type", nested_type);
builder.enum_type = Internal.copyOf("enum_type", enum_type);
builder.extension_range = Internal.copyOf("extension_range", extension_range);
builder.oneof_decl = Internal.copyOf("oneof_decl", oneof_decl);
builder.options = options;
builder.reserved_range = Internal.copyOf("reserved_range", reserved_range);
builder.reserved_name = Internal.copyOf("reserved_name", reserved_name);
builder.addUnknownFields(unknownFields());
return builder;
}
示例11: equals
import com.squareup.wire.internal.Internal; //导入依赖的package包/类
@Override
public boolean equals(Object other) {
if (other == this) return true;
if (!(other instanceof Phone)) return false;
Phone o = (Phone) other;
return Internal.equals(unknownFields(), o.unknownFields())
&& Internal.equals(number, o.number);
}
示例12: FrameEntity
import com.squareup.wire.internal.Internal; //导入依赖的package包/类
public FrameEntity(Float alpha, Layout layout, Transform transform, String clipPath,
List<ShapeEntity> shapes, ByteString unknownFields) {
super(ADAPTER, unknownFields);
this.alpha = alpha;
this.layout = layout;
this.transform = transform;
this.clipPath = clipPath;
this.shapes = Internal.immutableCopyOf("shapes", shapes);
}
示例13: newBuilder
import com.squareup.wire.internal.Internal; //导入依赖的package包/类
@Override
public Builder newBuilder() {
Builder builder = new Builder();
builder.alpha = alpha;
builder.layout = layout;
builder.transform = transform;
builder.clipPath = clipPath;
builder.shapes = Internal.copyOf("shapes", shapes);
builder.addUnknownFields(unknownFields());
return builder;
}
示例14: equals
import com.squareup.wire.internal.Internal; //导入依赖的package包/类
@Override
public boolean equals(Object other) {
if (other == this) return true;
if (!(other instanceof FrameEntity)) return false;
FrameEntity o = (FrameEntity) other;
return unknownFields().equals(o.unknownFields())
&& Internal.equals(alpha, o.alpha)
&& Internal.equals(layout, o.layout)
&& Internal.equals(transform, o.transform)
&& Internal.equals(clipPath, o.clipPath)
&& shapes.equals(o.shapes);
}
示例15: 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();
}