All Downloads are FREE. Search and download functionalities are using the official Maven repository.

apsara.odps.lot.ViewSourceProtos Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: lot/viewsource.proto

package apsara.odps.lot;

public final class ViewSourceProtos {
  private ViewSourceProtos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface ViewSourceOrBuilder
      extends com.google.protobuf.MessageOrBuilder {
    
    // required string Project = 1;
    boolean hasProject();
    String getProject();
    
    // required string View = 2;
    boolean hasView();
    String getView();
  }
  public static final class ViewSource extends
      com.google.protobuf.GeneratedMessage
      implements ViewSourceOrBuilder {
    // Use ViewSource.newBuilder() to construct.
    private ViewSource(Builder builder) {
      super(builder);
    }
    private ViewSource(boolean noInit) {}
    
    private static final ViewSource defaultInstance;
    public static ViewSource getDefaultInstance() {
      return defaultInstance;
    }
    
    public ViewSource getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return apsara.odps.lot.ViewSourceProtos.internal_static_apsara_odps_lot_ViewSource_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.lot.ViewSourceProtos.internal_static_apsara_odps_lot_ViewSource_fieldAccessorTable;
    }
    
    private int bitField0_;
    // required string Project = 1;
    public static final int PROJECT_FIELD_NUMBER = 1;
    private java.lang.Object project_;
    public boolean hasProject() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    public String getProject() {
      java.lang.Object ref = project_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
          project_ = s;
        }
        return s;
      }
    }
    private com.google.protobuf.ByteString getProjectBytes() {
      java.lang.Object ref = project_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
        project_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    
    // required string View = 2;
    public static final int VIEW_FIELD_NUMBER = 2;
    private java.lang.Object view_;
    public boolean hasView() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    public String getView() {
      java.lang.Object ref = view_;
      if (ref instanceof String) {
        return (String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
          view_ = s;
        }
        return s;
      }
    }
    private com.google.protobuf.ByteString getViewBytes() {
      java.lang.Object ref = view_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
        view_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    
    private void initFields() {
      project_ = "";
      view_ = "";
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;
      
      if (!hasProject()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasView()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }
    
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getProjectBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getViewBytes());
      }
      getUnknownFields().writeTo(output);
    }
    
    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;
    
      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, getProjectBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getViewBytes());
      }
      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 apsara.odps.lot.ViewSourceProtos.ViewSource parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static apsara.odps.lot.ViewSourceProtos.ViewSource parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static apsara.odps.lot.ViewSourceProtos.ViewSource parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static apsara.odps.lot.ViewSourceProtos.ViewSource parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static apsara.odps.lot.ViewSourceProtos.ViewSource parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static apsara.odps.lot.ViewSourceProtos.ViewSource parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static apsara.odps.lot.ViewSourceProtos.ViewSource parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static apsara.odps.lot.ViewSourceProtos.ViewSource parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static apsara.odps.lot.ViewSourceProtos.ViewSource parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static apsara.odps.lot.ViewSourceProtos.ViewSource parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    
    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(apsara.odps.lot.ViewSourceProtos.ViewSource 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;
    }
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.lot.ViewSourceProtos.ViewSourceOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.lot.ViewSourceProtos.internal_static_apsara_odps_lot_ViewSource_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.lot.ViewSourceProtos.internal_static_apsara_odps_lot_ViewSource_fieldAccessorTable;
      }
      
      // Construct using apsara.odps.lot.ViewSourceProtos.ViewSource.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }
      
      private Builder(BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }
      
      public Builder clear() {
        super.clear();
        project_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        view_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.lot.ViewSourceProtos.ViewSource.getDescriptor();
      }
      
      public apsara.odps.lot.ViewSourceProtos.ViewSource getDefaultInstanceForType() {
        return apsara.odps.lot.ViewSourceProtos.ViewSource.getDefaultInstance();
      }
      
      public apsara.odps.lot.ViewSourceProtos.ViewSource build() {
        apsara.odps.lot.ViewSourceProtos.ViewSource result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      
      private apsara.odps.lot.ViewSourceProtos.ViewSource buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        apsara.odps.lot.ViewSourceProtos.ViewSource result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return result;
      }
      
      public apsara.odps.lot.ViewSourceProtos.ViewSource buildPartial() {
        apsara.odps.lot.ViewSourceProtos.ViewSource result = new apsara.odps.lot.ViewSourceProtos.ViewSource(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.project_ = project_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.view_ = view_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.lot.ViewSourceProtos.ViewSource) {
          return mergeFrom((apsara.odps.lot.ViewSourceProtos.ViewSource)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(apsara.odps.lot.ViewSourceProtos.ViewSource other) {
        if (other == apsara.odps.lot.ViewSourceProtos.ViewSource.getDefaultInstance()) return this;
        if (other.hasProject()) {
          setProject(other.getProject());
        }
        if (other.hasView()) {
          setView(other.getView());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public final boolean isInitialized() {
        if (!hasProject()) {
          
          return false;
        }
        if (!hasView()) {
          
          return false;
        }
        return true;
      }
      
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder(
            this.getUnknownFields());
        while (true) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              this.setUnknownFields(unknownFields.build());
              onChanged();
              return this;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                this.setUnknownFields(unknownFields.build());
                onChanged();
                return this;
              }
              break;
            }
            case 10: {
              bitField0_ |= 0x00000001;
              project_ = input.readBytes();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              view_ = input.readBytes();
              break;
            }
          }
        }
      }
      
      private int bitField0_;
      
      // required string Project = 1;
      private java.lang.Object project_ = "";
      public boolean hasProject() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public String getProject() {
        java.lang.Object ref = project_;
        if (!(ref instanceof String)) {
          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
          project_ = s;
          return s;
        } else {
          return (String) ref;
        }
      }
      public Builder setProject(String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        project_ = value;
        onChanged();
        return this;
      }
      public Builder clearProject() {
        bitField0_ = (bitField0_ & ~0x00000001);
        project_ = getDefaultInstance().getProject();
        onChanged();
        return this;
      }
      void setProject(com.google.protobuf.ByteString value) {
        bitField0_ |= 0x00000001;
        project_ = value;
        onChanged();
      }
      
      // required string View = 2;
      private java.lang.Object view_ = "";
      public boolean hasView() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      public String getView() {
        java.lang.Object ref = view_;
        if (!(ref instanceof String)) {
          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
          view_ = s;
          return s;
        } else {
          return (String) ref;
        }
      }
      public Builder setView(String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        view_ = value;
        onChanged();
        return this;
      }
      public Builder clearView() {
        bitField0_ = (bitField0_ & ~0x00000002);
        view_ = getDefaultInstance().getView();
        onChanged();
        return this;
      }
      void setView(com.google.protobuf.ByteString value) {
        bitField0_ |= 0x00000002;
        view_ = value;
        onChanged();
      }
      
      // @@protoc_insertion_point(builder_scope:apsara.odps.lot.ViewSource)
    }
    
    static {
      defaultInstance = new ViewSource(true);
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:apsara.odps.lot.ViewSource)
  }
  
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_apsara_odps_lot_ViewSource_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_apsara_odps_lot_ViewSource_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\024lot/viewsource.proto\022\017apsara.odps.lot\"" +
      "+\n\nViewSource\022\017\n\007Project\030\001 \002(\t\022\014\n\004View\030\002" +
      " \002(\tB\022B\020ViewSourceProtos"
    };
    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_apsara_odps_lot_ViewSource_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_apsara_odps_lot_ViewSource_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_apsara_odps_lot_ViewSource_descriptor,
              new java.lang.String[] { "Project", "View", },
              apsara.odps.lot.ViewSourceProtos.ViewSource.class,
              apsara.odps.lot.ViewSourceProtos.ViewSource.Builder.class);
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
  }
  
  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy