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

com.google.cloud.visionai.v1.GstreamerBufferDescriptor Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/visionai/v1/streaming_resources.proto

// Protobuf Java Version: 3.25.3
package com.google.cloud.visionai.v1;

/**
 *
 *
 * 
 * The descriptor for a gstreamer buffer payload.
 * 
* * Protobuf type {@code google.cloud.visionai.v1.GstreamerBufferDescriptor} */ public final class GstreamerBufferDescriptor extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.GstreamerBufferDescriptor) GstreamerBufferDescriptorOrBuilder { private static final long serialVersionUID = 0L; // Use GstreamerBufferDescriptor.newBuilder() to construct. private GstreamerBufferDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GstreamerBufferDescriptor() { capsString_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GstreamerBufferDescriptor(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.StreamingResourcesProto .internal_static_google_cloud_visionai_v1_GstreamerBufferDescriptor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.StreamingResourcesProto .internal_static_google_cloud_visionai_v1_GstreamerBufferDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.GstreamerBufferDescriptor.class, com.google.cloud.visionai.v1.GstreamerBufferDescriptor.Builder.class); } private int bitField0_; public static final int CAPS_STRING_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object capsString_ = ""; /** * * *
   * The caps string of the payload.
   * 
* * string caps_string = 1; * * @return The capsString. */ @java.lang.Override public java.lang.String getCapsString() { java.lang.Object ref = capsString_; 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(); capsString_ = s; return s; } } /** * * *
   * The caps string of the payload.
   * 
* * string caps_string = 1; * * @return The bytes for capsString. */ @java.lang.Override public com.google.protobuf.ByteString getCapsStringBytes() { java.lang.Object ref = capsString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); capsString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IS_KEY_FRAME_FIELD_NUMBER = 2; private boolean isKeyFrame_ = false; /** * * *
   * Whether the buffer is a key frame.
   * 
* * bool is_key_frame = 2; * * @return The isKeyFrame. */ @java.lang.Override public boolean getIsKeyFrame() { return isKeyFrame_; } public static final int PTS_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp ptsTime_; /** * * *
   * PTS of the frame.
   * 
* * .google.protobuf.Timestamp pts_time = 3; * * @return Whether the ptsTime field is set. */ @java.lang.Override public boolean hasPtsTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * PTS of the frame.
   * 
* * .google.protobuf.Timestamp pts_time = 3; * * @return The ptsTime. */ @java.lang.Override public com.google.protobuf.Timestamp getPtsTime() { return ptsTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ptsTime_; } /** * * *
   * PTS of the frame.
   * 
* * .google.protobuf.Timestamp pts_time = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getPtsTimeOrBuilder() { return ptsTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ptsTime_; } public static final int DTS_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp dtsTime_; /** * * *
   * DTS of the frame.
   * 
* * .google.protobuf.Timestamp dts_time = 4; * * @return Whether the dtsTime field is set. */ @java.lang.Override public boolean hasDtsTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * DTS of the frame.
   * 
* * .google.protobuf.Timestamp dts_time = 4; * * @return The dtsTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDtsTime() { return dtsTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dtsTime_; } /** * * *
   * DTS of the frame.
   * 
* * .google.protobuf.Timestamp dts_time = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDtsTimeOrBuilder() { return dtsTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dtsTime_; } public static final int DURATION_FIELD_NUMBER = 5; private com.google.protobuf.Duration duration_; /** * * *
   * Duration of the frame.
   * 
* * .google.protobuf.Duration duration = 5; * * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Duration of the frame.
   * 
* * .google.protobuf.Duration duration = 5; * * @return The duration. */ @java.lang.Override public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** * * *
   * Duration of the frame.
   * 
* * .google.protobuf.Duration duration = 5; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } 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(capsString_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, capsString_); } if (isKeyFrame_ != false) { output.writeBool(2, isKeyFrame_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getPtsTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getDtsTime()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getDuration()); } 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(capsString_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, capsString_); } if (isKeyFrame_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isKeyFrame_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPtsTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDtsTime()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDuration()); } 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 com.google.cloud.visionai.v1.GstreamerBufferDescriptor)) { return super.equals(obj); } com.google.cloud.visionai.v1.GstreamerBufferDescriptor other = (com.google.cloud.visionai.v1.GstreamerBufferDescriptor) obj; if (!getCapsString().equals(other.getCapsString())) return false; if (getIsKeyFrame() != other.getIsKeyFrame()) return false; if (hasPtsTime() != other.hasPtsTime()) return false; if (hasPtsTime()) { if (!getPtsTime().equals(other.getPtsTime())) return false; } if (hasDtsTime() != other.hasDtsTime()) return false; if (hasDtsTime()) { if (!getDtsTime().equals(other.getDtsTime())) return false; } if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { if (!getDuration().equals(other.getDuration())) 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) + CAPS_STRING_FIELD_NUMBER; hash = (53 * hash) + getCapsString().hashCode(); hash = (37 * hash) + IS_KEY_FRAME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsKeyFrame()); if (hasPtsTime()) { hash = (37 * hash) + PTS_TIME_FIELD_NUMBER; hash = (53 * hash) + getPtsTime().hashCode(); } if (hasDtsTime()) { hash = (37 * hash) + DTS_TIME_FIELD_NUMBER; hash = (53 * hash) + getDtsTime().hashCode(); } if (hasDuration()) { hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.GstreamerBufferDescriptor parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.GstreamerBufferDescriptor parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.GstreamerBufferDescriptor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.GstreamerBufferDescriptor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.GstreamerBufferDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.GstreamerBufferDescriptor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.GstreamerBufferDescriptor parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.GstreamerBufferDescriptor 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.google.cloud.visionai.v1.GstreamerBufferDescriptor parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.GstreamerBufferDescriptor 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.google.cloud.visionai.v1.GstreamerBufferDescriptor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.GstreamerBufferDescriptor 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.google.cloud.visionai.v1.GstreamerBufferDescriptor 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; } /** * * *
   * The descriptor for a gstreamer buffer payload.
   * 
* * Protobuf type {@code google.cloud.visionai.v1.GstreamerBufferDescriptor} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.GstreamerBufferDescriptor) com.google.cloud.visionai.v1.GstreamerBufferDescriptorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.StreamingResourcesProto .internal_static_google_cloud_visionai_v1_GstreamerBufferDescriptor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.StreamingResourcesProto .internal_static_google_cloud_visionai_v1_GstreamerBufferDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.GstreamerBufferDescriptor.class, com.google.cloud.visionai.v1.GstreamerBufferDescriptor.Builder.class); } // Construct using com.google.cloud.visionai.v1.GstreamerBufferDescriptor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPtsTimeFieldBuilder(); getDtsTimeFieldBuilder(); getDurationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; capsString_ = ""; isKeyFrame_ = false; ptsTime_ = null; if (ptsTimeBuilder_ != null) { ptsTimeBuilder_.dispose(); ptsTimeBuilder_ = null; } dtsTime_ = null; if (dtsTimeBuilder_ != null) { dtsTimeBuilder_.dispose(); dtsTimeBuilder_ = null; } duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.StreamingResourcesProto .internal_static_google_cloud_visionai_v1_GstreamerBufferDescriptor_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.GstreamerBufferDescriptor getDefaultInstanceForType() { return com.google.cloud.visionai.v1.GstreamerBufferDescriptor.getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.GstreamerBufferDescriptor build() { com.google.cloud.visionai.v1.GstreamerBufferDescriptor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.GstreamerBufferDescriptor buildPartial() { com.google.cloud.visionai.v1.GstreamerBufferDescriptor result = new com.google.cloud.visionai.v1.GstreamerBufferDescriptor(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.visionai.v1.GstreamerBufferDescriptor result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.capsString_ = capsString_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.isKeyFrame_ = isKeyFrame_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.ptsTime_ = ptsTimeBuilder_ == null ? ptsTime_ : ptsTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.dtsTime_ = dtsTimeBuilder_ == null ? dtsTime_ : dtsTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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.google.cloud.visionai.v1.GstreamerBufferDescriptor) { return mergeFrom((com.google.cloud.visionai.v1.GstreamerBufferDescriptor) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.visionai.v1.GstreamerBufferDescriptor other) { if (other == com.google.cloud.visionai.v1.GstreamerBufferDescriptor.getDefaultInstance()) return this; if (!other.getCapsString().isEmpty()) { capsString_ = other.capsString_; bitField0_ |= 0x00000001; onChanged(); } if (other.getIsKeyFrame() != false) { setIsKeyFrame(other.getIsKeyFrame()); } if (other.hasPtsTime()) { mergePtsTime(other.getPtsTime()); } if (other.hasDtsTime()) { mergeDtsTime(other.getDtsTime()); } if (other.hasDuration()) { mergeDuration(other.getDuration()); } 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: { capsString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { isKeyFrame_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage(getPtsTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getDtsTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 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 capsString_ = ""; /** * * *
     * The caps string of the payload.
     * 
* * string caps_string = 1; * * @return The capsString. */ public java.lang.String getCapsString() { java.lang.Object ref = capsString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); capsString_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The caps string of the payload.
     * 
* * string caps_string = 1; * * @return The bytes for capsString. */ public com.google.protobuf.ByteString getCapsStringBytes() { java.lang.Object ref = capsString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); capsString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The caps string of the payload.
     * 
* * string caps_string = 1; * * @param value The capsString to set. * @return This builder for chaining. */ public Builder setCapsString(java.lang.String value) { if (value == null) { throw new NullPointerException(); } capsString_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The caps string of the payload.
     * 
* * string caps_string = 1; * * @return This builder for chaining. */ public Builder clearCapsString() { capsString_ = getDefaultInstance().getCapsString(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The caps string of the payload.
     * 
* * string caps_string = 1; * * @param value The bytes for capsString to set. * @return This builder for chaining. */ public Builder setCapsStringBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); capsString_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private boolean isKeyFrame_; /** * * *
     * Whether the buffer is a key frame.
     * 
* * bool is_key_frame = 2; * * @return The isKeyFrame. */ @java.lang.Override public boolean getIsKeyFrame() { return isKeyFrame_; } /** * * *
     * Whether the buffer is a key frame.
     * 
* * bool is_key_frame = 2; * * @param value The isKeyFrame to set. * @return This builder for chaining. */ public Builder setIsKeyFrame(boolean value) { isKeyFrame_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Whether the buffer is a key frame.
     * 
* * bool is_key_frame = 2; * * @return This builder for chaining. */ public Builder clearIsKeyFrame() { bitField0_ = (bitField0_ & ~0x00000002); isKeyFrame_ = false; onChanged(); return this; } private com.google.protobuf.Timestamp ptsTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> ptsTimeBuilder_; /** * * *
     * PTS of the frame.
     * 
* * .google.protobuf.Timestamp pts_time = 3; * * @return Whether the ptsTime field is set. */ public boolean hasPtsTime() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * PTS of the frame.
     * 
* * .google.protobuf.Timestamp pts_time = 3; * * @return The ptsTime. */ public com.google.protobuf.Timestamp getPtsTime() { if (ptsTimeBuilder_ == null) { return ptsTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ptsTime_; } else { return ptsTimeBuilder_.getMessage(); } } /** * * *
     * PTS of the frame.
     * 
* * .google.protobuf.Timestamp pts_time = 3; */ public Builder setPtsTime(com.google.protobuf.Timestamp value) { if (ptsTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ptsTime_ = value; } else { ptsTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * PTS of the frame.
     * 
* * .google.protobuf.Timestamp pts_time = 3; */ public Builder setPtsTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (ptsTimeBuilder_ == null) { ptsTime_ = builderForValue.build(); } else { ptsTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * PTS of the frame.
     * 
* * .google.protobuf.Timestamp pts_time = 3; */ public Builder mergePtsTime(com.google.protobuf.Timestamp value) { if (ptsTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && ptsTime_ != null && ptsTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getPtsTimeBuilder().mergeFrom(value); } else { ptsTime_ = value; } } else { ptsTimeBuilder_.mergeFrom(value); } if (ptsTime_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * PTS of the frame.
     * 
* * .google.protobuf.Timestamp pts_time = 3; */ public Builder clearPtsTime() { bitField0_ = (bitField0_ & ~0x00000004); ptsTime_ = null; if (ptsTimeBuilder_ != null) { ptsTimeBuilder_.dispose(); ptsTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * PTS of the frame.
     * 
* * .google.protobuf.Timestamp pts_time = 3; */ public com.google.protobuf.Timestamp.Builder getPtsTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPtsTimeFieldBuilder().getBuilder(); } /** * * *
     * PTS of the frame.
     * 
* * .google.protobuf.Timestamp pts_time = 3; */ public com.google.protobuf.TimestampOrBuilder getPtsTimeOrBuilder() { if (ptsTimeBuilder_ != null) { return ptsTimeBuilder_.getMessageOrBuilder(); } else { return ptsTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ptsTime_; } } /** * * *
     * PTS of the frame.
     * 
* * .google.protobuf.Timestamp pts_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getPtsTimeFieldBuilder() { if (ptsTimeBuilder_ == null) { ptsTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getPtsTime(), getParentForChildren(), isClean()); ptsTime_ = null; } return ptsTimeBuilder_; } private com.google.protobuf.Timestamp dtsTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dtsTimeBuilder_; /** * * *
     * DTS of the frame.
     * 
* * .google.protobuf.Timestamp dts_time = 4; * * @return Whether the dtsTime field is set. */ public boolean hasDtsTime() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * DTS of the frame.
     * 
* * .google.protobuf.Timestamp dts_time = 4; * * @return The dtsTime. */ public com.google.protobuf.Timestamp getDtsTime() { if (dtsTimeBuilder_ == null) { return dtsTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dtsTime_; } else { return dtsTimeBuilder_.getMessage(); } } /** * * *
     * DTS of the frame.
     * 
* * .google.protobuf.Timestamp dts_time = 4; */ public Builder setDtsTime(com.google.protobuf.Timestamp value) { if (dtsTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dtsTime_ = value; } else { dtsTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * DTS of the frame.
     * 
* * .google.protobuf.Timestamp dts_time = 4; */ public Builder setDtsTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (dtsTimeBuilder_ == null) { dtsTime_ = builderForValue.build(); } else { dtsTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * DTS of the frame.
     * 
* * .google.protobuf.Timestamp dts_time = 4; */ public Builder mergeDtsTime(com.google.protobuf.Timestamp value) { if (dtsTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && dtsTime_ != null && dtsTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDtsTimeBuilder().mergeFrom(value); } else { dtsTime_ = value; } } else { dtsTimeBuilder_.mergeFrom(value); } if (dtsTime_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * DTS of the frame.
     * 
* * .google.protobuf.Timestamp dts_time = 4; */ public Builder clearDtsTime() { bitField0_ = (bitField0_ & ~0x00000008); dtsTime_ = null; if (dtsTimeBuilder_ != null) { dtsTimeBuilder_.dispose(); dtsTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * DTS of the frame.
     * 
* * .google.protobuf.Timestamp dts_time = 4; */ public com.google.protobuf.Timestamp.Builder getDtsTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDtsTimeFieldBuilder().getBuilder(); } /** * * *
     * DTS of the frame.
     * 
* * .google.protobuf.Timestamp dts_time = 4; */ public com.google.protobuf.TimestampOrBuilder getDtsTimeOrBuilder() { if (dtsTimeBuilder_ != null) { return dtsTimeBuilder_.getMessageOrBuilder(); } else { return dtsTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dtsTime_; } } /** * * *
     * DTS of the frame.
     * 
* * .google.protobuf.Timestamp dts_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDtsTimeFieldBuilder() { if (dtsTimeBuilder_ == null) { dtsTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getDtsTime(), getParentForChildren(), isClean()); dtsTime_ = null; } return dtsTimeBuilder_; } private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** * * *
     * Duration of the frame.
     * 
* * .google.protobuf.Duration duration = 5; * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * Duration of the frame.
     * 
* * .google.protobuf.Duration duration = 5; * * @return The duration. */ public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } else { return durationBuilder_.getMessage(); } } /** * * *
     * Duration of the frame.
     * 
* * .google.protobuf.Duration duration = 5; */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } duration_ = value; } else { durationBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Duration of the frame.
     * 
* * .google.protobuf.Duration duration = 5; */ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { durationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Duration of the frame.
     * 
* * .google.protobuf.Duration duration = 5; */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && duration_ != null && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; } } else { durationBuilder_.mergeFrom(value); } if (duration_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * * *
     * Duration of the frame.
     * 
* * .google.protobuf.Duration duration = 5; */ public Builder clearDuration() { bitField0_ = (bitField0_ & ~0x00000010); duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } onChanged(); return this; } /** * * *
     * Duration of the frame.
     * 
* * .google.protobuf.Duration duration = 5; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { bitField0_ |= 0x00000010; onChanged(); return getDurationFieldBuilder().getBuilder(); } /** * * *
     * Duration of the frame.
     * 
* * .google.protobuf.Duration duration = 5; */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** * * *
     * Duration of the frame.
     * 
* * .google.protobuf.Duration duration = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } @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:google.cloud.visionai.v1.GstreamerBufferDescriptor) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.GstreamerBufferDescriptor) private static final com.google.cloud.visionai.v1.GstreamerBufferDescriptor DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.GstreamerBufferDescriptor(); } public static com.google.cloud.visionai.v1.GstreamerBufferDescriptor getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GstreamerBufferDescriptor 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 com.google.cloud.visionai.v1.GstreamerBufferDescriptor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy