// Generated by the protocol buffer compiler. DO NOT EDIT! // source: publishers.proto package gazebo.msgs; public final class GzPublishers { private GzPublishers() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface PublishersOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .gazebo.msgs.Publish publisher = 1; /** * repeated .gazebo.msgs.Publish publisher = 1; */ java.util.List getPublisherList(); /** * repeated .gazebo.msgs.Publish publisher = 1; */ gazebo.msgs.GzPublish.Publish getPublisher(int index); /** * repeated .gazebo.msgs.Publish publisher = 1; */ int getPublisherCount(); /** * repeated .gazebo.msgs.Publish publisher = 1; */ java.util.List getPublisherOrBuilderList(); /** * repeated .gazebo.msgs.Publish publisher = 1; */ gazebo.msgs.GzPublish.PublishOrBuilder getPublisherOrBuilder( int index); } /** * Protobuf type {@code gazebo.msgs.Publishers} */ public static final class Publishers extends com.google.protobuf.GeneratedMessage implements PublishersOrBuilder { // Use Publishers.newBuilder() to construct. private Publishers(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Publishers(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Publishers defaultInstance; public static Publishers getDefaultInstance() { return defaultInstance; } public Publishers getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Publishers( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { publisher_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } publisher_.add(input.readMessage(gazebo.msgs.GzPublish.Publish.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { publisher_ = java.util.Collections.unmodifiableList(publisher_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return gazebo.msgs.GzPublishers.internal_static_gazebo_msgs_Publishers_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return gazebo.msgs.GzPublishers.internal_static_gazebo_msgs_Publishers_fieldAccessorTable .ensureFieldAccessorsInitialized( gazebo.msgs.GzPublishers.Publishers.class, gazebo.msgs.GzPublishers.Publishers.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Publishers parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Publishers(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .gazebo.msgs.Publish publisher = 1; public static final int PUBLISHER_FIELD_NUMBER = 1; private java.util.List publisher_; /** * repeated .gazebo.msgs.Publish publisher = 1; */ public java.util.List getPublisherList() { return publisher_; } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public java.util.List getPublisherOrBuilderList() { return publisher_; } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public int getPublisherCount() { return publisher_.size(); } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public gazebo.msgs.GzPublish.Publish getPublisher(int index) { return publisher_.get(index); } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public gazebo.msgs.GzPublish.PublishOrBuilder getPublisherOrBuilder( int index) { return publisher_.get(index); } private void initFields() { publisher_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getPublisherCount(); i++) { if (!getPublisher(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < publisher_.size(); i++) { output.writeMessage(1, publisher_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < publisher_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, publisher_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static gazebo.msgs.GzPublishers.Publishers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static gazebo.msgs.GzPublishers.Publishers parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static gazebo.msgs.GzPublishers.Publishers parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static gazebo.msgs.GzPublishers.Publishers parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static gazebo.msgs.GzPublishers.Publishers parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static gazebo.msgs.GzPublishers.Publishers parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static gazebo.msgs.GzPublishers.Publishers parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static gazebo.msgs.GzPublishers.Publishers parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static gazebo.msgs.GzPublishers.Publishers parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static gazebo.msgs.GzPublishers.Publishers parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(gazebo.msgs.GzPublishers.Publishers prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code gazebo.msgs.Publishers} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements gazebo.msgs.GzPublishers.PublishersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return gazebo.msgs.GzPublishers.internal_static_gazebo_msgs_Publishers_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return gazebo.msgs.GzPublishers.internal_static_gazebo_msgs_Publishers_fieldAccessorTable .ensureFieldAccessorsInitialized( gazebo.msgs.GzPublishers.Publishers.class, gazebo.msgs.GzPublishers.Publishers.Builder.class); } // Construct using gazebo.msgs.GzPublishers.Publishers.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPublisherFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (publisherBuilder_ == null) { publisher_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { publisherBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return gazebo.msgs.GzPublishers.internal_static_gazebo_msgs_Publishers_descriptor; } public gazebo.msgs.GzPublishers.Publishers getDefaultInstanceForType() { return gazebo.msgs.GzPublishers.Publishers.getDefaultInstance(); } public gazebo.msgs.GzPublishers.Publishers build() { gazebo.msgs.GzPublishers.Publishers result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public gazebo.msgs.GzPublishers.Publishers buildPartial() { gazebo.msgs.GzPublishers.Publishers result = new gazebo.msgs.GzPublishers.Publishers(this); int from_bitField0_ = bitField0_; if (publisherBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { publisher_ = java.util.Collections.unmodifiableList(publisher_); bitField0_ = (bitField0_ & ~0x00000001); } result.publisher_ = publisher_; } else { result.publisher_ = publisherBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof gazebo.msgs.GzPublishers.Publishers) { return mergeFrom((gazebo.msgs.GzPublishers.Publishers)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(gazebo.msgs.GzPublishers.Publishers other) { if (other == gazebo.msgs.GzPublishers.Publishers.getDefaultInstance()) return this; if (publisherBuilder_ == null) { if (!other.publisher_.isEmpty()) { if (publisher_.isEmpty()) { publisher_ = other.publisher_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePublisherIsMutable(); publisher_.addAll(other.publisher_); } onChanged(); } } else { if (!other.publisher_.isEmpty()) { if (publisherBuilder_.isEmpty()) { publisherBuilder_.dispose(); publisherBuilder_ = null; publisher_ = other.publisher_; bitField0_ = (bitField0_ & ~0x00000001); publisherBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPublisherFieldBuilder() : null; } else { publisherBuilder_.addAllMessages(other.publisher_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getPublisherCount(); i++) { if (!getPublisher(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { gazebo.msgs.GzPublishers.Publishers parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (gazebo.msgs.GzPublishers.Publishers) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .gazebo.msgs.Publish publisher = 1; private java.util.List publisher_ = java.util.Collections.emptyList(); private void ensurePublisherIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { publisher_ = new java.util.ArrayList(publisher_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< gazebo.msgs.GzPublish.Publish, gazebo.msgs.GzPublish.Publish.Builder, gazebo.msgs.GzPublish.PublishOrBuilder> publisherBuilder_; /** * repeated .gazebo.msgs.Publish publisher = 1; */ public java.util.List getPublisherList() { if (publisherBuilder_ == null) { return java.util.Collections.unmodifiableList(publisher_); } else { return publisherBuilder_.getMessageList(); } } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public int getPublisherCount() { if (publisherBuilder_ == null) { return publisher_.size(); } else { return publisherBuilder_.getCount(); } } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public gazebo.msgs.GzPublish.Publish getPublisher(int index) { if (publisherBuilder_ == null) { return publisher_.get(index); } else { return publisherBuilder_.getMessage(index); } } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public Builder setPublisher( int index, gazebo.msgs.GzPublish.Publish value) { if (publisherBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePublisherIsMutable(); publisher_.set(index, value); onChanged(); } else { publisherBuilder_.setMessage(index, value); } return this; } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public Builder setPublisher( int index, gazebo.msgs.GzPublish.Publish.Builder builderForValue) { if (publisherBuilder_ == null) { ensurePublisherIsMutable(); publisher_.set(index, builderForValue.build()); onChanged(); } else { publisherBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public Builder addPublisher(gazebo.msgs.GzPublish.Publish value) { if (publisherBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePublisherIsMutable(); publisher_.add(value); onChanged(); } else { publisherBuilder_.addMessage(value); } return this; } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public Builder addPublisher( int index, gazebo.msgs.GzPublish.Publish value) { if (publisherBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePublisherIsMutable(); publisher_.add(index, value); onChanged(); } else { publisherBuilder_.addMessage(index, value); } return this; } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public Builder addPublisher( gazebo.msgs.GzPublish.Publish.Builder builderForValue) { if (publisherBuilder_ == null) { ensurePublisherIsMutable(); publisher_.add(builderForValue.build()); onChanged(); } else { publisherBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public Builder addPublisher( int index, gazebo.msgs.GzPublish.Publish.Builder builderForValue) { if (publisherBuilder_ == null) { ensurePublisherIsMutable(); publisher_.add(index, builderForValue.build()); onChanged(); } else { publisherBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public Builder addAllPublisher( java.lang.Iterable values) { if (publisherBuilder_ == null) { ensurePublisherIsMutable(); super.addAll(values, publisher_); onChanged(); } else { publisherBuilder_.addAllMessages(values); } return this; } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public Builder clearPublisher() { if (publisherBuilder_ == null) { publisher_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { publisherBuilder_.clear(); } return this; } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public Builder removePublisher(int index) { if (publisherBuilder_ == null) { ensurePublisherIsMutable(); publisher_.remove(index); onChanged(); } else { publisherBuilder_.remove(index); } return this; } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public gazebo.msgs.GzPublish.Publish.Builder getPublisherBuilder( int index) { return getPublisherFieldBuilder().getBuilder(index); } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public gazebo.msgs.GzPublish.PublishOrBuilder getPublisherOrBuilder( int index) { if (publisherBuilder_ == null) { return publisher_.get(index); } else { return publisherBuilder_.getMessageOrBuilder(index); } } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public java.util.List getPublisherOrBuilderList() { if (publisherBuilder_ != null) { return publisherBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(publisher_); } } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public gazebo.msgs.GzPublish.Publish.Builder addPublisherBuilder() { return getPublisherFieldBuilder().addBuilder( gazebo.msgs.GzPublish.Publish.getDefaultInstance()); } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public gazebo.msgs.GzPublish.Publish.Builder addPublisherBuilder( int index) { return getPublisherFieldBuilder().addBuilder( index, gazebo.msgs.GzPublish.Publish.getDefaultInstance()); } /** * repeated .gazebo.msgs.Publish publisher = 1; */ public java.util.List getPublisherBuilderList() { return getPublisherFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< gazebo.msgs.GzPublish.Publish, gazebo.msgs.GzPublish.Publish.Builder, gazebo.msgs.GzPublish.PublishOrBuilder> getPublisherFieldBuilder() { if (publisherBuilder_ == null) { publisherBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< gazebo.msgs.GzPublish.Publish, gazebo.msgs.GzPublish.Publish.Builder, gazebo.msgs.GzPublish.PublishOrBuilder>( publisher_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); publisher_ = null; } return publisherBuilder_; } // @@protoc_insertion_point(builder_scope:gazebo.msgs.Publishers) } static { defaultInstance = new Publishers(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:gazebo.msgs.Publishers) } private static com.google.protobuf.Descriptors.Descriptor internal_static_gazebo_msgs_Publishers_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_gazebo_msgs_Publishers_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\020publishers.proto\022\013gazebo.msgs\032\rpublish" + ".proto\"5\n\nPublishers\022\'\n\tpublisher\030\001 \003(\0132" + "\024.gazebo.msgs.PublishB\016B\014GzPublishers" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_gazebo_msgs_Publishers_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_gazebo_msgs_Publishers_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_gazebo_msgs_Publishers_descriptor, new java.lang.String[] { "Publisher", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { gazebo.msgs.GzPublish.getDescriptor(), }, assigner); } // @@protoc_insertion_point(outer_class_scope) }