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

org.finos.tracdap.api.DownloadRequest Maven / Gradle / Ivy

Go to download

TRAC D.A.P. platform API, contains service API definitions for the TRAC platform services

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: tracdap/api/data.proto
// Protobuf Java Version: 4.28.2

package org.finos.tracdap.api;

/**
 * 
 * *
 * Request object for an HTTP download
 * 
* * Protobuf type {@code tracdap.api.DownloadRequest} */ public final class DownloadRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:tracdap.api.DownloadRequest) DownloadRequestOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 2, /* suffix= */ "", DownloadRequest.class.getName()); } // Use DownloadRequest.newBuilder() to construct. private DownloadRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DownloadRequest() { tenant_ = ""; objectType_ = 0; objectId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.finos.tracdap.api.Data.internal_static_tracdap_api_DownloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.finos.tracdap.api.Data.internal_static_tracdap_api_DownloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.finos.tracdap.api.DownloadRequest.class, org.finos.tracdap.api.DownloadRequest.Builder.class); } private int bitField0_; public static final int TENANT_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object tenant_ = ""; /** * string tenant = 1; * @return The tenant. */ @java.lang.Override public java.lang.String getTenant() { java.lang.Object ref = tenant_; 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(); tenant_ = s; return s; } } /** * string tenant = 1; * @return The bytes for tenant. */ @java.lang.Override public com.google.protobuf.ByteString getTenantBytes() { java.lang.Object ref = tenant_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tenant_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OBJECTTYPE_FIELD_NUMBER = 2; private int objectType_ = 0; /** * .tracdap.metadata.ObjectType objectType = 2; * @return The enum numeric value on the wire for objectType. */ @java.lang.Override public int getObjectTypeValue() { return objectType_; } /** * .tracdap.metadata.ObjectType objectType = 2; * @return The objectType. */ @java.lang.Override public org.finos.tracdap.metadata.ObjectType getObjectType() { org.finos.tracdap.metadata.ObjectType result = org.finos.tracdap.metadata.ObjectType.forNumber(objectType_); return result == null ? org.finos.tracdap.metadata.ObjectType.UNRECOGNIZED : result; } public static final int OBJECTID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object objectId_ = ""; /** * string objectId = 3; * @return The objectId. */ @java.lang.Override public java.lang.String getObjectId() { java.lang.Object ref = objectId_; 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(); objectId_ = s; return s; } } /** * string objectId = 3; * @return The bytes for objectId. */ @java.lang.Override public com.google.protobuf.ByteString getObjectIdBytes() { java.lang.Object ref = objectId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); objectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OBJECTVERSION_FIELD_NUMBER = 4; private int objectVersion_ = 0; /** * optional int32 objectVersion = 4; * @return Whether the objectVersion field is set. */ @java.lang.Override public boolean hasObjectVersion() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 objectVersion = 4; * @return The objectVersion. */ @java.lang.Override public int getObjectVersion() { return objectVersion_; } 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.GeneratedMessage.isStringEmpty(tenant_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, tenant_); } if (objectType_ != org.finos.tracdap.metadata.ObjectType.OBJECT_TYPE_NOT_SET.getNumber()) { output.writeEnum(2, objectType_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(objectId_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, objectId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(4, objectVersion_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenant_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tenant_); } if (objectType_ != org.finos.tracdap.metadata.ObjectType.OBJECT_TYPE_NOT_SET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, objectType_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(objectId_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, objectId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, objectVersion_); } 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 org.finos.tracdap.api.DownloadRequest)) { return super.equals(obj); } org.finos.tracdap.api.DownloadRequest other = (org.finos.tracdap.api.DownloadRequest) obj; if (!getTenant() .equals(other.getTenant())) return false; if (objectType_ != other.objectType_) return false; if (!getObjectId() .equals(other.getObjectId())) return false; if (hasObjectVersion() != other.hasObjectVersion()) return false; if (hasObjectVersion()) { if (getObjectVersion() != other.getObjectVersion()) 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) + TENANT_FIELD_NUMBER; hash = (53 * hash) + getTenant().hashCode(); hash = (37 * hash) + OBJECTTYPE_FIELD_NUMBER; hash = (53 * hash) + objectType_; hash = (37 * hash) + OBJECTID_FIELD_NUMBER; hash = (53 * hash) + getObjectId().hashCode(); if (hasObjectVersion()) { hash = (37 * hash) + OBJECTVERSION_FIELD_NUMBER; hash = (53 * hash) + getObjectVersion(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.finos.tracdap.api.DownloadRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.DownloadRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.finos.tracdap.api.DownloadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.DownloadRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.finos.tracdap.api.DownloadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.finos.tracdap.api.DownloadRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.finos.tracdap.api.DownloadRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.finos.tracdap.api.DownloadRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.finos.tracdap.api.DownloadRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.finos.tracdap.api.DownloadRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.finos.tracdap.api.DownloadRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.finos.tracdap.api.DownloadRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.finos.tracdap.api.DownloadRequest 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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * *
   * Request object for an HTTP download
   * 
* * Protobuf type {@code tracdap.api.DownloadRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:tracdap.api.DownloadRequest) org.finos.tracdap.api.DownloadRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.finos.tracdap.api.Data.internal_static_tracdap_api_DownloadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.finos.tracdap.api.Data.internal_static_tracdap_api_DownloadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.finos.tracdap.api.DownloadRequest.class, org.finos.tracdap.api.DownloadRequest.Builder.class); } // Construct using org.finos.tracdap.api.DownloadRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tenant_ = ""; objectType_ = 0; objectId_ = ""; objectVersion_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.finos.tracdap.api.Data.internal_static_tracdap_api_DownloadRequest_descriptor; } @java.lang.Override public org.finos.tracdap.api.DownloadRequest getDefaultInstanceForType() { return org.finos.tracdap.api.DownloadRequest.getDefaultInstance(); } @java.lang.Override public org.finos.tracdap.api.DownloadRequest build() { org.finos.tracdap.api.DownloadRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.finos.tracdap.api.DownloadRequest buildPartial() { org.finos.tracdap.api.DownloadRequest result = new org.finos.tracdap.api.DownloadRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.finos.tracdap.api.DownloadRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.tenant_ = tenant_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.objectType_ = objectType_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.objectId_ = objectId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.objectVersion_ = objectVersion_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.finos.tracdap.api.DownloadRequest) { return mergeFrom((org.finos.tracdap.api.DownloadRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.finos.tracdap.api.DownloadRequest other) { if (other == org.finos.tracdap.api.DownloadRequest.getDefaultInstance()) return this; if (!other.getTenant().isEmpty()) { tenant_ = other.tenant_; bitField0_ |= 0x00000001; onChanged(); } if (other.objectType_ != 0) { setObjectTypeValue(other.getObjectTypeValue()); } if (!other.getObjectId().isEmpty()) { objectId_ = other.objectId_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasObjectVersion()) { setObjectVersion(other.getObjectVersion()); } 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: { tenant_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { objectType_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { objectId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { objectVersion_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 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 tenant_ = ""; /** * string tenant = 1; * @return The tenant. */ public java.lang.String getTenant() { java.lang.Object ref = tenant_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tenant_ = s; return s; } else { return (java.lang.String) ref; } } /** * string tenant = 1; * @return The bytes for tenant. */ public com.google.protobuf.ByteString getTenantBytes() { java.lang.Object ref = tenant_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tenant_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string tenant = 1; * @param value The tenant to set. * @return This builder for chaining. */ public Builder setTenant( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tenant_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string tenant = 1; * @return This builder for chaining. */ public Builder clearTenant() { tenant_ = getDefaultInstance().getTenant(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string tenant = 1; * @param value The bytes for tenant to set. * @return This builder for chaining. */ public Builder setTenantBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tenant_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int objectType_ = 0; /** * .tracdap.metadata.ObjectType objectType = 2; * @return The enum numeric value on the wire for objectType. */ @java.lang.Override public int getObjectTypeValue() { return objectType_; } /** * .tracdap.metadata.ObjectType objectType = 2; * @param value The enum numeric value on the wire for objectType to set. * @return This builder for chaining. */ public Builder setObjectTypeValue(int value) { objectType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .tracdap.metadata.ObjectType objectType = 2; * @return The objectType. */ @java.lang.Override public org.finos.tracdap.metadata.ObjectType getObjectType() { org.finos.tracdap.metadata.ObjectType result = org.finos.tracdap.metadata.ObjectType.forNumber(objectType_); return result == null ? org.finos.tracdap.metadata.ObjectType.UNRECOGNIZED : result; } /** * .tracdap.metadata.ObjectType objectType = 2; * @param value The objectType to set. * @return This builder for chaining. */ public Builder setObjectType(org.finos.tracdap.metadata.ObjectType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; objectType_ = value.getNumber(); onChanged(); return this; } /** * .tracdap.metadata.ObjectType objectType = 2; * @return This builder for chaining. */ public Builder clearObjectType() { bitField0_ = (bitField0_ & ~0x00000002); objectType_ = 0; onChanged(); return this; } private java.lang.Object objectId_ = ""; /** * string objectId = 3; * @return The objectId. */ public java.lang.String getObjectId() { java.lang.Object ref = objectId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); objectId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string objectId = 3; * @return The bytes for objectId. */ public com.google.protobuf.ByteString getObjectIdBytes() { java.lang.Object ref = objectId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); objectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string objectId = 3; * @param value The objectId to set. * @return This builder for chaining. */ public Builder setObjectId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } objectId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string objectId = 3; * @return This builder for chaining. */ public Builder clearObjectId() { objectId_ = getDefaultInstance().getObjectId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string objectId = 3; * @param value The bytes for objectId to set. * @return This builder for chaining. */ public Builder setObjectIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); objectId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private int objectVersion_ ; /** * optional int32 objectVersion = 4; * @return Whether the objectVersion field is set. */ @java.lang.Override public boolean hasObjectVersion() { return ((bitField0_ & 0x00000008) != 0); } /** * optional int32 objectVersion = 4; * @return The objectVersion. */ @java.lang.Override public int getObjectVersion() { return objectVersion_; } /** * optional int32 objectVersion = 4; * @param value The objectVersion to set. * @return This builder for chaining. */ public Builder setObjectVersion(int value) { objectVersion_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional int32 objectVersion = 4; * @return This builder for chaining. */ public Builder clearObjectVersion() { bitField0_ = (bitField0_ & ~0x00000008); objectVersion_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:tracdap.api.DownloadRequest) } // @@protoc_insertion_point(class_scope:tracdap.api.DownloadRequest) private static final org.finos.tracdap.api.DownloadRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.finos.tracdap.api.DownloadRequest(); } public static org.finos.tracdap.api.DownloadRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DownloadRequest 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 org.finos.tracdap.api.DownloadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy