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

com.clarifai.grpc.api.Audio Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/api/resources.proto

package com.clarifai.grpc.api;

/**
 * 
 * Audio asset struct
 * 
* * Protobuf type {@code clarifai.api.Audio} */ public final class Audio extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.Audio) AudioOrBuilder { private static final long serialVersionUID = 0L; // Use Audio.newBuilder() to construct. private Audio(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Audio() { url_ = ""; base64_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Audio(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Audio( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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; case 10: { java.lang.String s = input.readStringRequireUtf8(); url_ = s; break; } case 18: { base64_ = input.readBytes(); break; } case 32: { allowDuplicateUrl_ = input.readBool(); break; } case 42: { com.clarifai.grpc.api.HostedURL.Builder subBuilder = null; if (hosted_ != null) { subBuilder = hosted_.toBuilder(); } hosted_ = input.readMessage(com.clarifai.grpc.api.HostedURL.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(hosted_); hosted_ = subBuilder.buildPartial(); } break; } case 50: { com.clarifai.grpc.api.AudioInfo.Builder subBuilder = null; if (audioInfo_ != null) { subBuilder = audioInfo_.toBuilder(); } audioInfo_ = input.readMessage(com.clarifai.grpc.api.AudioInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(audioInfo_); audioInfo_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Audio_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Audio_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Audio.class, com.clarifai.grpc.api.Audio.Builder.class); } public static final int URL_FIELD_NUMBER = 1; private volatile java.lang.Object url_; /** *
   * This is a URL to a publicly accessible image file. The platform will download this file server
   * side and then process.
   * 
* * string url = 1; * @return The url. */ @java.lang.Override public java.lang.String getUrl() { java.lang.Object ref = url_; 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(); url_ = s; return s; } } /** *
   * This is a URL to a publicly accessible image file. The platform will download this file server
   * side and then process.
   * 
* * string url = 1; * @return The bytes for url. */ @java.lang.Override public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BASE64_FIELD_NUMBER = 2; private com.google.protobuf.ByteString base64_; /** *
   * The base64 field is using image file bytes directly in the request.
   * NOTE: if you're sending a json request, then this MUST be base64 encoded before sending (hence
   * the name here).
   * When using our grpc clients, you DO NOT need to base64 encode
   * it yourself since the clients know how to do this for you automatically and will avoid the
   * base64 encoding if they send a binary request.
   * 
* * bytes base64 = 2; * @return The base64. */ @java.lang.Override public com.google.protobuf.ByteString getBase64() { return base64_; } public static final int ALLOW_DUPLICATE_URL_FIELD_NUMBER = 4; private boolean allowDuplicateUrl_; /** *
   * If True then you will be allowed to have multiple urls.
   * 
* * bool allow_duplicate_url = 4; * @return The allowDuplicateUrl. */ @java.lang.Override public boolean getAllowDuplicateUrl() { return allowDuplicateUrl_; } public static final int HOSTED_FIELD_NUMBER = 5; private com.clarifai.grpc.api.HostedURL hosted_; /** *
   * The hosted field lists original audio hosted in Clarifai storage. This field is currently used
   * only in response.
   * 
* * .clarifai.api.HostedURL hosted = 5; * @return Whether the hosted field is set. */ @java.lang.Override public boolean hasHosted() { return hosted_ != null; } /** *
   * The hosted field lists original audio hosted in Clarifai storage. This field is currently used
   * only in response.
   * 
* * .clarifai.api.HostedURL hosted = 5; * @return The hosted. */ @java.lang.Override public com.clarifai.grpc.api.HostedURL getHosted() { return hosted_ == null ? com.clarifai.grpc.api.HostedURL.getDefaultInstance() : hosted_; } /** *
   * The hosted field lists original audio hosted in Clarifai storage. This field is currently used
   * only in response.
   * 
* * .clarifai.api.HostedURL hosted = 5; */ @java.lang.Override public com.clarifai.grpc.api.HostedURLOrBuilder getHostedOrBuilder() { return getHosted(); } public static final int AUDIO_INFO_FIELD_NUMBER = 6; private com.clarifai.grpc.api.AudioInfo audioInfo_; /** *
   * audio info
   * 
* * .clarifai.api.AudioInfo audio_info = 6; * @return Whether the audioInfo field is set. */ @java.lang.Override public boolean hasAudioInfo() { return audioInfo_ != null; } /** *
   * audio info
   * 
* * .clarifai.api.AudioInfo audio_info = 6; * @return The audioInfo. */ @java.lang.Override public com.clarifai.grpc.api.AudioInfo getAudioInfo() { return audioInfo_ == null ? com.clarifai.grpc.api.AudioInfo.getDefaultInstance() : audioInfo_; } /** *
   * audio info
   * 
* * .clarifai.api.AudioInfo audio_info = 6; */ @java.lang.Override public com.clarifai.grpc.api.AudioInfoOrBuilder getAudioInfoOrBuilder() { return getAudioInfo(); } 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(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } if (!base64_.isEmpty()) { output.writeBytes(2, base64_); } if (allowDuplicateUrl_ != false) { output.writeBool(4, allowDuplicateUrl_); } if (hosted_ != null) { output.writeMessage(5, getHosted()); } if (audioInfo_ != null) { output.writeMessage(6, getAudioInfo()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (!base64_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, base64_); } if (allowDuplicateUrl_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, allowDuplicateUrl_); } if (hosted_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getHosted()); } if (audioInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getAudioInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.clarifai.grpc.api.Audio)) { return super.equals(obj); } com.clarifai.grpc.api.Audio other = (com.clarifai.grpc.api.Audio) obj; if (!getUrl() .equals(other.getUrl())) return false; if (!getBase64() .equals(other.getBase64())) return false; if (getAllowDuplicateUrl() != other.getAllowDuplicateUrl()) return false; if (hasHosted() != other.hasHosted()) return false; if (hasHosted()) { if (!getHosted() .equals(other.getHosted())) return false; } if (hasAudioInfo() != other.hasAudioInfo()) return false; if (hasAudioInfo()) { if (!getAudioInfo() .equals(other.getAudioInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) 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) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + BASE64_FIELD_NUMBER; hash = (53 * hash) + getBase64().hashCode(); hash = (37 * hash) + ALLOW_DUPLICATE_URL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowDuplicateUrl()); if (hasHosted()) { hash = (37 * hash) + HOSTED_FIELD_NUMBER; hash = (53 * hash) + getHosted().hashCode(); } if (hasAudioInfo()) { hash = (37 * hash) + AUDIO_INFO_FIELD_NUMBER; hash = (53 * hash) + getAudioInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.Audio parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Audio parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.Audio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Audio parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.Audio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Audio parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.Audio parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Audio 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 com.clarifai.grpc.api.Audio parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Audio 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 com.clarifai.grpc.api.Audio parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Audio 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(com.clarifai.grpc.api.Audio 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; } /** *
   * Audio asset struct
   * 
* * Protobuf type {@code clarifai.api.Audio} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.Audio) com.clarifai.grpc.api.AudioOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Audio_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Audio_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Audio.class, com.clarifai.grpc.api.Audio.Builder.class); } // Construct using com.clarifai.grpc.api.Audio.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); url_ = ""; base64_ = com.google.protobuf.ByteString.EMPTY; allowDuplicateUrl_ = false; if (hostedBuilder_ == null) { hosted_ = null; } else { hosted_ = null; hostedBuilder_ = null; } if (audioInfoBuilder_ == null) { audioInfo_ = null; } else { audioInfo_ = null; audioInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Audio_descriptor; } @java.lang.Override public com.clarifai.grpc.api.Audio getDefaultInstanceForType() { return com.clarifai.grpc.api.Audio.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.Audio build() { com.clarifai.grpc.api.Audio result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.Audio buildPartial() { com.clarifai.grpc.api.Audio result = new com.clarifai.grpc.api.Audio(this); result.url_ = url_; result.base64_ = base64_; result.allowDuplicateUrl_ = allowDuplicateUrl_; if (hostedBuilder_ == null) { result.hosted_ = hosted_; } else { result.hosted_ = hostedBuilder_.build(); } if (audioInfoBuilder_ == null) { result.audioInfo_ = audioInfo_; } else { result.audioInfo_ = audioInfoBuilder_.build(); } onBuilt(); return result; } @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 com.clarifai.grpc.api.Audio) { return mergeFrom((com.clarifai.grpc.api.Audio)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.Audio other) { if (other == com.clarifai.grpc.api.Audio.getDefaultInstance()) return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); } if (other.getBase64() != com.google.protobuf.ByteString.EMPTY) { setBase64(other.getBase64()); } if (other.getAllowDuplicateUrl() != false) { setAllowDuplicateUrl(other.getAllowDuplicateUrl()); } if (other.hasHosted()) { mergeHosted(other.getHosted()); } if (other.hasAudioInfo()) { mergeAudioInfo(other.getAudioInfo()); } this.mergeUnknownFields(other.unknownFields); 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 { com.clarifai.grpc.api.Audio parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.Audio) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object url_ = ""; /** *
     * This is a URL to a publicly accessible image file. The platform will download this file server
     * side and then process.
     * 
* * string url = 1; * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * This is a URL to a publicly accessible image file. The platform will download this file server
     * side and then process.
     * 
* * string url = 1; * @return The bytes for url. */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * This is a URL to a publicly accessible image file. The platform will download this file server
     * side and then process.
     * 
* * string url = 1; * @param value The url to set. * @return This builder for chaining. */ public Builder setUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } url_ = value; onChanged(); return this; } /** *
     * This is a URL to a publicly accessible image file. The platform will download this file server
     * side and then process.
     * 
* * string url = 1; * @return This builder for chaining. */ public Builder clearUrl() { url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** *
     * This is a URL to a publicly accessible image file. The platform will download this file server
     * side and then process.
     * 
* * string url = 1; * @param value The bytes for url to set. * @return This builder for chaining. */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); url_ = value; onChanged(); return this; } private com.google.protobuf.ByteString base64_ = com.google.protobuf.ByteString.EMPTY; /** *
     * The base64 field is using image file bytes directly in the request.
     * NOTE: if you're sending a json request, then this MUST be base64 encoded before sending (hence
     * the name here).
     * When using our grpc clients, you DO NOT need to base64 encode
     * it yourself since the clients know how to do this for you automatically and will avoid the
     * base64 encoding if they send a binary request.
     * 
* * bytes base64 = 2; * @return The base64. */ @java.lang.Override public com.google.protobuf.ByteString getBase64() { return base64_; } /** *
     * The base64 field is using image file bytes directly in the request.
     * NOTE: if you're sending a json request, then this MUST be base64 encoded before sending (hence
     * the name here).
     * When using our grpc clients, you DO NOT need to base64 encode
     * it yourself since the clients know how to do this for you automatically and will avoid the
     * base64 encoding if they send a binary request.
     * 
* * bytes base64 = 2; * @param value The base64 to set. * @return This builder for chaining. */ public Builder setBase64(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } base64_ = value; onChanged(); return this; } /** *
     * The base64 field is using image file bytes directly in the request.
     * NOTE: if you're sending a json request, then this MUST be base64 encoded before sending (hence
     * the name here).
     * When using our grpc clients, you DO NOT need to base64 encode
     * it yourself since the clients know how to do this for you automatically and will avoid the
     * base64 encoding if they send a binary request.
     * 
* * bytes base64 = 2; * @return This builder for chaining. */ public Builder clearBase64() { base64_ = getDefaultInstance().getBase64(); onChanged(); return this; } private boolean allowDuplicateUrl_ ; /** *
     * If True then you will be allowed to have multiple urls.
     * 
* * bool allow_duplicate_url = 4; * @return The allowDuplicateUrl. */ @java.lang.Override public boolean getAllowDuplicateUrl() { return allowDuplicateUrl_; } /** *
     * If True then you will be allowed to have multiple urls.
     * 
* * bool allow_duplicate_url = 4; * @param value The allowDuplicateUrl to set. * @return This builder for chaining. */ public Builder setAllowDuplicateUrl(boolean value) { allowDuplicateUrl_ = value; onChanged(); return this; } /** *
     * If True then you will be allowed to have multiple urls.
     * 
* * bool allow_duplicate_url = 4; * @return This builder for chaining. */ public Builder clearAllowDuplicateUrl() { allowDuplicateUrl_ = false; onChanged(); return this; } private com.clarifai.grpc.api.HostedURL hosted_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.HostedURL, com.clarifai.grpc.api.HostedURL.Builder, com.clarifai.grpc.api.HostedURLOrBuilder> hostedBuilder_; /** *
     * The hosted field lists original audio hosted in Clarifai storage. This field is currently used
     * only in response.
     * 
* * .clarifai.api.HostedURL hosted = 5; * @return Whether the hosted field is set. */ public boolean hasHosted() { return hostedBuilder_ != null || hosted_ != null; } /** *
     * The hosted field lists original audio hosted in Clarifai storage. This field is currently used
     * only in response.
     * 
* * .clarifai.api.HostedURL hosted = 5; * @return The hosted. */ public com.clarifai.grpc.api.HostedURL getHosted() { if (hostedBuilder_ == null) { return hosted_ == null ? com.clarifai.grpc.api.HostedURL.getDefaultInstance() : hosted_; } else { return hostedBuilder_.getMessage(); } } /** *
     * The hosted field lists original audio hosted in Clarifai storage. This field is currently used
     * only in response.
     * 
* * .clarifai.api.HostedURL hosted = 5; */ public Builder setHosted(com.clarifai.grpc.api.HostedURL value) { if (hostedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hosted_ = value; onChanged(); } else { hostedBuilder_.setMessage(value); } return this; } /** *
     * The hosted field lists original audio hosted in Clarifai storage. This field is currently used
     * only in response.
     * 
* * .clarifai.api.HostedURL hosted = 5; */ public Builder setHosted( com.clarifai.grpc.api.HostedURL.Builder builderForValue) { if (hostedBuilder_ == null) { hosted_ = builderForValue.build(); onChanged(); } else { hostedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The hosted field lists original audio hosted in Clarifai storage. This field is currently used
     * only in response.
     * 
* * .clarifai.api.HostedURL hosted = 5; */ public Builder mergeHosted(com.clarifai.grpc.api.HostedURL value) { if (hostedBuilder_ == null) { if (hosted_ != null) { hosted_ = com.clarifai.grpc.api.HostedURL.newBuilder(hosted_).mergeFrom(value).buildPartial(); } else { hosted_ = value; } onChanged(); } else { hostedBuilder_.mergeFrom(value); } return this; } /** *
     * The hosted field lists original audio hosted in Clarifai storage. This field is currently used
     * only in response.
     * 
* * .clarifai.api.HostedURL hosted = 5; */ public Builder clearHosted() { if (hostedBuilder_ == null) { hosted_ = null; onChanged(); } else { hosted_ = null; hostedBuilder_ = null; } return this; } /** *
     * The hosted field lists original audio hosted in Clarifai storage. This field is currently used
     * only in response.
     * 
* * .clarifai.api.HostedURL hosted = 5; */ public com.clarifai.grpc.api.HostedURL.Builder getHostedBuilder() { onChanged(); return getHostedFieldBuilder().getBuilder(); } /** *
     * The hosted field lists original audio hosted in Clarifai storage. This field is currently used
     * only in response.
     * 
* * .clarifai.api.HostedURL hosted = 5; */ public com.clarifai.grpc.api.HostedURLOrBuilder getHostedOrBuilder() { if (hostedBuilder_ != null) { return hostedBuilder_.getMessageOrBuilder(); } else { return hosted_ == null ? com.clarifai.grpc.api.HostedURL.getDefaultInstance() : hosted_; } } /** *
     * The hosted field lists original audio hosted in Clarifai storage. This field is currently used
     * only in response.
     * 
* * .clarifai.api.HostedURL hosted = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.HostedURL, com.clarifai.grpc.api.HostedURL.Builder, com.clarifai.grpc.api.HostedURLOrBuilder> getHostedFieldBuilder() { if (hostedBuilder_ == null) { hostedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.HostedURL, com.clarifai.grpc.api.HostedURL.Builder, com.clarifai.grpc.api.HostedURLOrBuilder>( getHosted(), getParentForChildren(), isClean()); hosted_ = null; } return hostedBuilder_; } private com.clarifai.grpc.api.AudioInfo audioInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.AudioInfo, com.clarifai.grpc.api.AudioInfo.Builder, com.clarifai.grpc.api.AudioInfoOrBuilder> audioInfoBuilder_; /** *
     * audio info
     * 
* * .clarifai.api.AudioInfo audio_info = 6; * @return Whether the audioInfo field is set. */ public boolean hasAudioInfo() { return audioInfoBuilder_ != null || audioInfo_ != null; } /** *
     * audio info
     * 
* * .clarifai.api.AudioInfo audio_info = 6; * @return The audioInfo. */ public com.clarifai.grpc.api.AudioInfo getAudioInfo() { if (audioInfoBuilder_ == null) { return audioInfo_ == null ? com.clarifai.grpc.api.AudioInfo.getDefaultInstance() : audioInfo_; } else { return audioInfoBuilder_.getMessage(); } } /** *
     * audio info
     * 
* * .clarifai.api.AudioInfo audio_info = 6; */ public Builder setAudioInfo(com.clarifai.grpc.api.AudioInfo value) { if (audioInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } audioInfo_ = value; onChanged(); } else { audioInfoBuilder_.setMessage(value); } return this; } /** *
     * audio info
     * 
* * .clarifai.api.AudioInfo audio_info = 6; */ public Builder setAudioInfo( com.clarifai.grpc.api.AudioInfo.Builder builderForValue) { if (audioInfoBuilder_ == null) { audioInfo_ = builderForValue.build(); onChanged(); } else { audioInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * audio info
     * 
* * .clarifai.api.AudioInfo audio_info = 6; */ public Builder mergeAudioInfo(com.clarifai.grpc.api.AudioInfo value) { if (audioInfoBuilder_ == null) { if (audioInfo_ != null) { audioInfo_ = com.clarifai.grpc.api.AudioInfo.newBuilder(audioInfo_).mergeFrom(value).buildPartial(); } else { audioInfo_ = value; } onChanged(); } else { audioInfoBuilder_.mergeFrom(value); } return this; } /** *
     * audio info
     * 
* * .clarifai.api.AudioInfo audio_info = 6; */ public Builder clearAudioInfo() { if (audioInfoBuilder_ == null) { audioInfo_ = null; onChanged(); } else { audioInfo_ = null; audioInfoBuilder_ = null; } return this; } /** *
     * audio info
     * 
* * .clarifai.api.AudioInfo audio_info = 6; */ public com.clarifai.grpc.api.AudioInfo.Builder getAudioInfoBuilder() { onChanged(); return getAudioInfoFieldBuilder().getBuilder(); } /** *
     * audio info
     * 
* * .clarifai.api.AudioInfo audio_info = 6; */ public com.clarifai.grpc.api.AudioInfoOrBuilder getAudioInfoOrBuilder() { if (audioInfoBuilder_ != null) { return audioInfoBuilder_.getMessageOrBuilder(); } else { return audioInfo_ == null ? com.clarifai.grpc.api.AudioInfo.getDefaultInstance() : audioInfo_; } } /** *
     * audio info
     * 
* * .clarifai.api.AudioInfo audio_info = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.AudioInfo, com.clarifai.grpc.api.AudioInfo.Builder, com.clarifai.grpc.api.AudioInfoOrBuilder> getAudioInfoFieldBuilder() { if (audioInfoBuilder_ == null) { audioInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.AudioInfo, com.clarifai.grpc.api.AudioInfo.Builder, com.clarifai.grpc.api.AudioInfoOrBuilder>( getAudioInfo(), getParentForChildren(), isClean()); audioInfo_ = null; } return audioInfoBuilder_; } @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:clarifai.api.Audio) } // @@protoc_insertion_point(class_scope:clarifai.api.Audio) private static final com.clarifai.grpc.api.Audio DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.Audio(); } public static com.clarifai.grpc.api.Audio getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser




© 2015 - 2024 Weber Informatics LLC | Privacy Policy