Search in sources :

Example 21 with Override

use of java.lang.Override in project wire by square.

the class Thing method newBuilder.

@Override
public Builder newBuilder() {
    Builder builder = new Builder();
    builder.name = name;
    builder.addUnknownFields(unknownFields());
    return builder;
}
Also used : StringBuilder(java.lang.StringBuilder) Override(java.lang.Override)

Example 22 with Override

use of java.lang.Override in project wire by square.

the class AllTypes method newBuilder.

@Override
public Builder newBuilder() {
    Builder builder = new Builder();
    builder.opt_int32 = opt_int32;
    builder.opt_uint32 = opt_uint32;
    builder.opt_sint32 = opt_sint32;
    builder.opt_fixed32 = opt_fixed32;
    builder.opt_sfixed32 = opt_sfixed32;
    builder.opt_int64 = opt_int64;
    builder.opt_uint64 = opt_uint64;
    builder.opt_sint64 = opt_sint64;
    builder.opt_fixed64 = opt_fixed64;
    builder.opt_sfixed64 = opt_sfixed64;
    builder.opt_bool = opt_bool;
    builder.opt_float = opt_float;
    builder.opt_double = opt_double;
    builder.opt_string = opt_string;
    builder.opt_bytes = opt_bytes;
    builder.opt_nested_enum = opt_nested_enum;
    builder.opt_nested_message = opt_nested_message;
    builder.req_int32 = req_int32;
    builder.req_uint32 = req_uint32;
    builder.req_sint32 = req_sint32;
    builder.req_fixed32 = req_fixed32;
    builder.req_sfixed32 = req_sfixed32;
    builder.req_int64 = req_int64;
    builder.req_uint64 = req_uint64;
    builder.req_sint64 = req_sint64;
    builder.req_fixed64 = req_fixed64;
    builder.req_sfixed64 = req_sfixed64;
    builder.req_bool = req_bool;
    builder.req_float = req_float;
    builder.req_double = req_double;
    builder.req_string = req_string;
    builder.req_bytes = req_bytes;
    builder.req_nested_enum = req_nested_enum;
    builder.req_nested_message = req_nested_message;
    builder.rep_int32 = Internal.copyOf("rep_int32", rep_int32);
    builder.rep_uint32 = Internal.copyOf("rep_uint32", rep_uint32);
    builder.rep_sint32 = Internal.copyOf("rep_sint32", rep_sint32);
    builder.rep_fixed32 = Internal.copyOf("rep_fixed32", rep_fixed32);
    builder.rep_sfixed32 = Internal.copyOf("rep_sfixed32", rep_sfixed32);
    builder.rep_int64 = Internal.copyOf("rep_int64", rep_int64);
    builder.rep_uint64 = Internal.copyOf("rep_uint64", rep_uint64);
    builder.rep_sint64 = Internal.copyOf("rep_sint64", rep_sint64);
    builder.rep_fixed64 = Internal.copyOf("rep_fixed64", rep_fixed64);
    builder.rep_sfixed64 = Internal.copyOf("rep_sfixed64", rep_sfixed64);
    builder.rep_bool = Internal.copyOf("rep_bool", rep_bool);
    builder.rep_float = Internal.copyOf("rep_float", rep_float);
    builder.rep_double = Internal.copyOf("rep_double", rep_double);
    builder.rep_string = Internal.copyOf("rep_string", rep_string);
    builder.rep_bytes = Internal.copyOf("rep_bytes", rep_bytes);
    builder.rep_nested_enum = Internal.copyOf("rep_nested_enum", rep_nested_enum);
    builder.rep_nested_message = Internal.copyOf("rep_nested_message", rep_nested_message);
    builder.pack_int32 = Internal.copyOf("pack_int32", pack_int32);
    builder.pack_uint32 = Internal.copyOf("pack_uint32", pack_uint32);
    builder.pack_sint32 = Internal.copyOf("pack_sint32", pack_sint32);
    builder.pack_fixed32 = Internal.copyOf("pack_fixed32", pack_fixed32);
    builder.pack_sfixed32 = Internal.copyOf("pack_sfixed32", pack_sfixed32);
    builder.pack_int64 = Internal.copyOf("pack_int64", pack_int64);
    builder.pack_uint64 = Internal.copyOf("pack_uint64", pack_uint64);
    builder.pack_sint64 = Internal.copyOf("pack_sint64", pack_sint64);
    builder.pack_fixed64 = Internal.copyOf("pack_fixed64", pack_fixed64);
    builder.pack_sfixed64 = Internal.copyOf("pack_sfixed64", pack_sfixed64);
    builder.pack_bool = Internal.copyOf("pack_bool", pack_bool);
    builder.pack_float = Internal.copyOf("pack_float", pack_float);
    builder.pack_double = Internal.copyOf("pack_double", pack_double);
    builder.pack_nested_enum = Internal.copyOf("pack_nested_enum", pack_nested_enum);
    builder.default_int32 = default_int32;
    builder.default_uint32 = default_uint32;
    builder.default_sint32 = default_sint32;
    builder.default_fixed32 = default_fixed32;
    builder.default_sfixed32 = default_sfixed32;
    builder.default_int64 = default_int64;
    builder.default_uint64 = default_uint64;
    builder.default_sint64 = default_sint64;
    builder.default_fixed64 = default_fixed64;
    builder.default_sfixed64 = default_sfixed64;
    builder.default_bool = default_bool;
    builder.default_float = default_float;
    builder.default_double = default_double;
    builder.default_string = default_string;
    builder.default_bytes = default_bytes;
    builder.default_nested_enum = default_nested_enum;
    builder.map_int32_int32 = Internal.copyOf("map_int32_int32", map_int32_int32);
    builder.map_string_string = Internal.copyOf("map_string_string", map_string_string);
    builder.map_string_message = Internal.copyOf("map_string_message", map_string_message);
    builder.map_string_enum = Internal.copyOf("map_string_enum", map_string_enum);
    builder.ext_opt_int32 = ext_opt_int32;
    builder.ext_opt_uint32 = ext_opt_uint32;
    builder.ext_opt_sint32 = ext_opt_sint32;
    builder.ext_opt_fixed32 = ext_opt_fixed32;
    builder.ext_opt_sfixed32 = ext_opt_sfixed32;
    builder.ext_opt_int64 = ext_opt_int64;
    builder.ext_opt_uint64 = ext_opt_uint64;
    builder.ext_opt_sint64 = ext_opt_sint64;
    builder.ext_opt_fixed64 = ext_opt_fixed64;
    builder.ext_opt_sfixed64 = ext_opt_sfixed64;
    builder.ext_opt_bool = ext_opt_bool;
    builder.ext_opt_float = ext_opt_float;
    builder.ext_opt_double = ext_opt_double;
    builder.ext_opt_string = ext_opt_string;
    builder.ext_opt_bytes = ext_opt_bytes;
    builder.ext_opt_nested_enum = ext_opt_nested_enum;
    builder.ext_opt_nested_message = ext_opt_nested_message;
    builder.ext_rep_int32 = Internal.copyOf("ext_rep_int32", ext_rep_int32);
    builder.ext_rep_uint32 = Internal.copyOf("ext_rep_uint32", ext_rep_uint32);
    builder.ext_rep_sint32 = Internal.copyOf("ext_rep_sint32", ext_rep_sint32);
    builder.ext_rep_fixed32 = Internal.copyOf("ext_rep_fixed32", ext_rep_fixed32);
    builder.ext_rep_sfixed32 = Internal.copyOf("ext_rep_sfixed32", ext_rep_sfixed32);
    builder.ext_rep_int64 = Internal.copyOf("ext_rep_int64", ext_rep_int64);
    builder.ext_rep_uint64 = Internal.copyOf("ext_rep_uint64", ext_rep_uint64);
    builder.ext_rep_sint64 = Internal.copyOf("ext_rep_sint64", ext_rep_sint64);
    builder.ext_rep_fixed64 = Internal.copyOf("ext_rep_fixed64", ext_rep_fixed64);
    builder.ext_rep_sfixed64 = Internal.copyOf("ext_rep_sfixed64", ext_rep_sfixed64);
    builder.ext_rep_bool = Internal.copyOf("ext_rep_bool", ext_rep_bool);
    builder.ext_rep_float = Internal.copyOf("ext_rep_float", ext_rep_float);
    builder.ext_rep_double = Internal.copyOf("ext_rep_double", ext_rep_double);
    builder.ext_rep_string = Internal.copyOf("ext_rep_string", ext_rep_string);
    builder.ext_rep_bytes = Internal.copyOf("ext_rep_bytes", ext_rep_bytes);
    builder.ext_rep_nested_enum = Internal.copyOf("ext_rep_nested_enum", ext_rep_nested_enum);
    builder.ext_rep_nested_message = Internal.copyOf("ext_rep_nested_message", ext_rep_nested_message);
    builder.ext_pack_int32 = Internal.copyOf("ext_pack_int32", ext_pack_int32);
    builder.ext_pack_uint32 = Internal.copyOf("ext_pack_uint32", ext_pack_uint32);
    builder.ext_pack_sint32 = Internal.copyOf("ext_pack_sint32", ext_pack_sint32);
    builder.ext_pack_fixed32 = Internal.copyOf("ext_pack_fixed32", ext_pack_fixed32);
    builder.ext_pack_sfixed32 = Internal.copyOf("ext_pack_sfixed32", ext_pack_sfixed32);
    builder.ext_pack_int64 = Internal.copyOf("ext_pack_int64", ext_pack_int64);
    builder.ext_pack_uint64 = Internal.copyOf("ext_pack_uint64", ext_pack_uint64);
    builder.ext_pack_sint64 = Internal.copyOf("ext_pack_sint64", ext_pack_sint64);
    builder.ext_pack_fixed64 = Internal.copyOf("ext_pack_fixed64", ext_pack_fixed64);
    builder.ext_pack_sfixed64 = Internal.copyOf("ext_pack_sfixed64", ext_pack_sfixed64);
    builder.ext_pack_bool = Internal.copyOf("ext_pack_bool", ext_pack_bool);
    builder.ext_pack_float = Internal.copyOf("ext_pack_float", ext_pack_float);
    builder.ext_pack_double = Internal.copyOf("ext_pack_double", ext_pack_double);
    builder.ext_pack_nested_enum = Internal.copyOf("ext_pack_nested_enum", ext_pack_nested_enum);
    builder.ext_map_int32_int32 = Internal.copyOf("ext_map_int32_int32", ext_map_int32_int32);
    builder.ext_map_string_string = Internal.copyOf("ext_map_string_string", ext_map_string_string);
    builder.ext_map_string_message = Internal.copyOf("ext_map_string_message", ext_map_string_message);
    builder.ext_map_string_enum = Internal.copyOf("ext_map_string_enum", ext_map_string_enum);
    builder.addUnknownFields(unknownFields());
    return builder;
}
Also used : StringBuilder(java.lang.StringBuilder) Override(java.lang.Override)

Example 23 with Override

use of java.lang.Override in project wire by square.

the class NoFields method newBuilder.

@Override
public Builder newBuilder() {
    Builder builder = new Builder();
    builder.addUnknownFields(unknownFields());
    return builder;
}
Also used : StringBuilder(java.lang.StringBuilder) Override(java.lang.Override)

Example 24 with Override

use of java.lang.Override in project wire by square.

the class FileOptions method newBuilder.

@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;
}
Also used : StringBuilder(java.lang.StringBuilder) Override(java.lang.Override)

Example 25 with Override

use of java.lang.Override in project wire by square.

the class MethodOptions method newBuilder.

@Override
public Builder newBuilder() {
    Builder builder = new Builder();
    builder.deprecated = deprecated;
    builder.uninterpreted_option = Internal.copyOf("uninterpreted_option", uninterpreted_option);
    builder.addUnknownFields(unknownFields());
    return builder;
}
Also used : StringBuilder(java.lang.StringBuilder) Override(java.lang.Override)

Aggregations

Override (java.lang.Override)176 StringBuilder (java.lang.StringBuilder)83 String (java.lang.String)35 NonNull (android.support.annotation.NonNull)24 ContentValues (android.content.ContentValues)12 ArrayList (java.util.ArrayList)11 View (android.view.View)10 Integer (java.lang.Integer)9 Long (java.lang.Long)9 HashMap (java.util.HashMap)9 Boolean (java.lang.Boolean)8 Double (java.lang.Double)8 Float (java.lang.Float)8 Short (java.lang.Short)8 Bitmap (android.graphics.Bitmap)5 Canvas (android.graphics.Canvas)5 Handler (android.os.Handler)5 HandlerThread (android.os.HandlerThread)5 SmallTest (android.test.suitebuilder.annotation.SmallTest)5 Map (java.util.Map)5