private void initFields() { name_ = ""; package_ = ""; dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; publicDependency_ = java.util.Collections.emptyList(); weakDependency_ = java.util.Collections.emptyList(); messageType_ = java.util.Collections.emptyList(); enumType_ = java.util.Collections.emptyList(); service_ = java.util.Collections.emptyList(); extension_ = java.util.Collections.emptyList(); options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> */ public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance() : options_; } } /**
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> */ public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } } /**
/** * <pre> * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * </pre> * * <code>optional string go_package = 11;</code> */ public Builder clearGoPackage() { bitField0_ = (bitField0_ & ~0x00000040); goPackage_ = getDefaultInstance().getGoPackage(); onChanged(); return this; } /**
/** * <code>optional string java_outer_classname = 8;</code> * * <pre> * If set, all the classes from the .proto file are wrapped in a single * outer class with the given name. This applies to both Proto1 * (equivalent to the old "--one_java_file" option) and Proto2 (where * a .proto always translates to a single class, but you may want to * explicitly choose the class name). * </pre> */ public Builder clearJavaOuterClassname() { bitField0_ = (bitField0_ & ~0x00000002); javaOuterClassname_ = getDefaultInstance().getJavaOuterClassname(); onChanged(); return this; } /**
/** * <pre> * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * </pre> * * <code>optional string java_package = 1;</code> */ public Builder clearJavaPackage() { bitField0_ = (bitField0_ & ~0x00000001); javaPackage_ = getDefaultInstance().getJavaPackage(); onChanged(); return this; } /**
/** * <pre> * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * </pre> * * <code>optional string swift_prefix = 39;</code> */ public Builder clearSwiftPrefix() { bitField0_ = (bitField0_ & ~0x00008000); swiftPrefix_ = getDefaultInstance().getSwiftPrefix(); onChanged(); return this; } /**
/** * <code>optional string java_package = 1;</code> * * <pre> * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * </pre> */ public Builder clearJavaPackage() { bitField0_ = (bitField0_ & ~0x00000001); javaPackage_ = getDefaultInstance().getJavaPackage(); onChanged(); return this; } /**
/** * <pre> * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. * </pre> * * <code>optional string ruby_package = 45;</code> */ public Builder clearRubyPackage() { bitField0_ = (bitField0_ & ~0x00080000); rubyPackage_ = getDefaultInstance().getRubyPackage(); onChanged(); return this; } /**
/** * <pre> * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be used * for determining the namespace. * </pre> * * <code>optional string php_metadata_namespace = 44;</code> */ public Builder clearPhpMetadataNamespace() { bitField0_ = (bitField0_ & ~0x00040000); phpMetadataNamespace_ = getDefaultInstance().getPhpMetadataNamespace(); onChanged(); return this; } /**
/** * <pre> * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. * </pre> * * <code>optional string php_namespace = 41;</code> */ public Builder clearPhpNamespace() { bitField0_ = (bitField0_ & ~0x00020000); phpNamespace_ = getDefaultInstance().getPhpNamespace(); onChanged(); return this; } /**
/** * <pre> * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * </pre> * * <code>optional string php_class_prefix = 40;</code> */ public Builder clearPhpClassPrefix() { bitField0_ = (bitField0_ & ~0x00010000); phpClassPrefix_ = getDefaultInstance().getPhpClassPrefix(); onChanged(); return this; } /**
/** * <pre> * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * </pre> * * <code>optional string objc_class_prefix = 36;</code> */ public Builder clearObjcClassPrefix() { bitField0_ = (bitField0_ & ~0x00002000); objcClassPrefix_ = getDefaultInstance().getObjcClassPrefix(); onChanged(); return this; } /**
/** * <pre> * Namespace for generated classes; defaults to the package. * </pre> * * <code>optional string csharp_namespace = 37;</code> */ public Builder clearCsharpNamespace() { bitField0_ = (bitField0_ & ~0x00004000); csharpNamespace_ = getDefaultInstance().getCsharpNamespace(); onChanged(); return this; } /**
/** * <code>optional string go_package = 11;</code> * * <pre> * Sets the Go package where structs generated from this .proto will be * placed. There is no default. * </pre> */ public Builder clearGoPackage() { bitField0_ = (bitField0_ & ~0x00000020); goPackage_ = getDefaultInstance().getGoPackage(); onChanged(); return this; } /**
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /**
public com.google.protobuf.DescriptorProtos.FileOptions getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); }
@java.lang.Override public com.google.protobuf.DescriptorProtos.FileOptions getDefaultInstanceForType() { return com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); }
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> */ public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { return options_ == null ? com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance() : options_; } /**
/** * <code>optional .google.protobuf.FileOptions options = 8;</code> */ public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance() : options_; }