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

java.io.deephaven.proto.backplane.grpc.MoveItemRequest Maven / Gradle / Ivy

There is a newer version: 0.36.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: deephaven/proto/storage.proto

// Protobuf Java Version: 3.25.3
package io.deephaven.proto.backplane.grpc;

/**
 * 
 * Requests to move a file to a new path, which may be in a different directory. Presently it is not
 * permitted to overwrite an existing file in this way.
 * 
* * Protobuf type {@code io.deephaven.proto.backplane.grpc.MoveItemRequest} */ public final class MoveItemRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.deephaven.proto.backplane.grpc.MoveItemRequest) MoveItemRequestOrBuilder { private static final long serialVersionUID = 0L; // Use MoveItemRequest.newBuilder() to construct. private MoveItemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MoveItemRequest() { oldPath_ = ""; newPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MoveItemRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.deephaven.proto.backplane.grpc.Storage.internal_static_io_deephaven_proto_backplane_grpc_MoveItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.deephaven.proto.backplane.grpc.Storage.internal_static_io_deephaven_proto_backplane_grpc_MoveItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.deephaven.proto.backplane.grpc.MoveItemRequest.class, io.deephaven.proto.backplane.grpc.MoveItemRequest.Builder.class); } public static final int OLD_PATH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object oldPath_ = ""; /** *
   * The path where the file currently exists
   * 
* * string old_path = 1; * @return The oldPath. */ @java.lang.Override public java.lang.String getOldPath() { java.lang.Object ref = oldPath_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); oldPath_ = s; return s; } } /** *
   * The path where the file currently exists
   * 
* * string old_path = 1; * @return The bytes for oldPath. */ @java.lang.Override public com.google.protobuf.ByteString getOldPathBytes() { java.lang.Object ref = oldPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); oldPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NEW_PATH_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object newPath_ = ""; /** *
   * The path where the file should be moved to
   * 
* * string new_path = 2; * @return The newPath. */ @java.lang.Override public java.lang.String getNewPath() { java.lang.Object ref = newPath_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); newPath_ = s; return s; } } /** *
   * The path where the file should be moved to
   * 
* * string new_path = 2; * @return The bytes for newPath. */ @java.lang.Override public com.google.protobuf.ByteString getNewPathBytes() { java.lang.Object ref = newPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALLOW_OVERWRITE_FIELD_NUMBER = 3; private boolean allowOverwrite_ = false; /** *
   * True to permit replacing an existing file, false to require that no file already exists with that name.
   * 
* * bool allow_overwrite = 3; * @return The allowOverwrite. */ @java.lang.Override public boolean getAllowOverwrite() { return allowOverwrite_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oldPath_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, newPath_); } if (allowOverwrite_ != false) { output.writeBool(3, allowOverwrite_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, oldPath_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, newPath_); } if (allowOverwrite_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, allowOverwrite_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.deephaven.proto.backplane.grpc.MoveItemRequest)) { return super.equals(obj); } io.deephaven.proto.backplane.grpc.MoveItemRequest other = (io.deephaven.proto.backplane.grpc.MoveItemRequest) obj; if (!getOldPath() .equals(other.getOldPath())) return false; if (!getNewPath() .equals(other.getNewPath())) return false; if (getAllowOverwrite() != other.getAllowOverwrite()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OLD_PATH_FIELD_NUMBER; hash = (53 * hash) + getOldPath().hashCode(); hash = (37 * hash) + NEW_PATH_FIELD_NUMBER; hash = (53 * hash) + getNewPath().hashCode(); hash = (37 * hash) + ALLOW_OVERWRITE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowOverwrite()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.deephaven.proto.backplane.grpc.MoveItemRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.deephaven.proto.backplane.grpc.MoveItemRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.deephaven.proto.backplane.grpc.MoveItemRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.deephaven.proto.backplane.grpc.MoveItemRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.deephaven.proto.backplane.grpc.MoveItemRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.deephaven.proto.backplane.grpc.MoveItemRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.deephaven.proto.backplane.grpc.MoveItemRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.deephaven.proto.backplane.grpc.MoveItemRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.deephaven.proto.backplane.grpc.MoveItemRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.deephaven.proto.backplane.grpc.MoveItemRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.deephaven.proto.backplane.grpc.MoveItemRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.deephaven.proto.backplane.grpc.MoveItemRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.deephaven.proto.backplane.grpc.MoveItemRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Requests to move a file to a new path, which may be in a different directory. Presently it is not
   * permitted to overwrite an existing file in this way.
   * 
* * Protobuf type {@code io.deephaven.proto.backplane.grpc.MoveItemRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.deephaven.proto.backplane.grpc.MoveItemRequest) io.deephaven.proto.backplane.grpc.MoveItemRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.deephaven.proto.backplane.grpc.Storage.internal_static_io_deephaven_proto_backplane_grpc_MoveItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.deephaven.proto.backplane.grpc.Storage.internal_static_io_deephaven_proto_backplane_grpc_MoveItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.deephaven.proto.backplane.grpc.MoveItemRequest.class, io.deephaven.proto.backplane.grpc.MoveItemRequest.Builder.class); } // Construct using io.deephaven.proto.backplane.grpc.MoveItemRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; oldPath_ = ""; newPath_ = ""; allowOverwrite_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.deephaven.proto.backplane.grpc.Storage.internal_static_io_deephaven_proto_backplane_grpc_MoveItemRequest_descriptor; } @java.lang.Override public io.deephaven.proto.backplane.grpc.MoveItemRequest getDefaultInstanceForType() { return io.deephaven.proto.backplane.grpc.MoveItemRequest.getDefaultInstance(); } @java.lang.Override public io.deephaven.proto.backplane.grpc.MoveItemRequest build() { io.deephaven.proto.backplane.grpc.MoveItemRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.deephaven.proto.backplane.grpc.MoveItemRequest buildPartial() { io.deephaven.proto.backplane.grpc.MoveItemRequest result = new io.deephaven.proto.backplane.grpc.MoveItemRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.deephaven.proto.backplane.grpc.MoveItemRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.oldPath_ = oldPath_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.newPath_ = newPath_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.allowOverwrite_ = allowOverwrite_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.deephaven.proto.backplane.grpc.MoveItemRequest) { return mergeFrom((io.deephaven.proto.backplane.grpc.MoveItemRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.deephaven.proto.backplane.grpc.MoveItemRequest other) { if (other == io.deephaven.proto.backplane.grpc.MoveItemRequest.getDefaultInstance()) return this; if (!other.getOldPath().isEmpty()) { oldPath_ = other.oldPath_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getNewPath().isEmpty()) { newPath_ = other.newPath_; bitField0_ |= 0x00000002; onChanged(); } if (other.getAllowOverwrite() != false) { setAllowOverwrite(other.getAllowOverwrite()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { oldPath_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { newPath_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { allowOverwrite_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object oldPath_ = ""; /** *
     * The path where the file currently exists
     * 
* * string old_path = 1; * @return The oldPath. */ public java.lang.String getOldPath() { java.lang.Object ref = oldPath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); oldPath_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The path where the file currently exists
     * 
* * string old_path = 1; * @return The bytes for oldPath. */ public com.google.protobuf.ByteString getOldPathBytes() { java.lang.Object ref = oldPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); oldPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The path where the file currently exists
     * 
* * string old_path = 1; * @param value The oldPath to set. * @return This builder for chaining. */ public Builder setOldPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } oldPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The path where the file currently exists
     * 
* * string old_path = 1; * @return This builder for chaining. */ public Builder clearOldPath() { oldPath_ = getDefaultInstance().getOldPath(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * The path where the file currently exists
     * 
* * string old_path = 1; * @param value The bytes for oldPath to set. * @return This builder for chaining. */ public Builder setOldPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); oldPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object newPath_ = ""; /** *
     * The path where the file should be moved to
     * 
* * string new_path = 2; * @return The newPath. */ public java.lang.String getNewPath() { java.lang.Object ref = newPath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); newPath_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The path where the file should be moved to
     * 
* * string new_path = 2; * @return The bytes for newPath. */ public com.google.protobuf.ByteString getNewPathBytes() { java.lang.Object ref = newPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The path where the file should be moved to
     * 
* * string new_path = 2; * @param value The newPath to set. * @return This builder for chaining. */ public Builder setNewPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } newPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The path where the file should be moved to
     * 
* * string new_path = 2; * @return This builder for chaining. */ public Builder clearNewPath() { newPath_ = getDefaultInstance().getNewPath(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * The path where the file should be moved to
     * 
* * string new_path = 2; * @param value The bytes for newPath to set. * @return This builder for chaining. */ public Builder setNewPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); newPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private boolean allowOverwrite_ ; /** *
     * True to permit replacing an existing file, false to require that no file already exists with that name.
     * 
* * bool allow_overwrite = 3; * @return The allowOverwrite. */ @java.lang.Override public boolean getAllowOverwrite() { return allowOverwrite_; } /** *
     * True to permit replacing an existing file, false to require that no file already exists with that name.
     * 
* * bool allow_overwrite = 3; * @param value The allowOverwrite to set. * @return This builder for chaining. */ public Builder setAllowOverwrite(boolean value) { allowOverwrite_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * True to permit replacing an existing file, false to require that no file already exists with that name.
     * 
* * bool allow_overwrite = 3; * @return This builder for chaining. */ public Builder clearAllowOverwrite() { bitField0_ = (bitField0_ & ~0x00000004); allowOverwrite_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:io.deephaven.proto.backplane.grpc.MoveItemRequest) } // @@protoc_insertion_point(class_scope:io.deephaven.proto.backplane.grpc.MoveItemRequest) private static final io.deephaven.proto.backplane.grpc.MoveItemRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.deephaven.proto.backplane.grpc.MoveItemRequest(); } public static io.deephaven.proto.backplane.grpc.MoveItemRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MoveItemRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.deephaven.proto.backplane.grpc.MoveItemRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy