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

com.google.cloud.video.livestream.v1.Clip Maven / Gradle / Ivy

There is a newer version: 0.57.0
Show newest version
/*
 * 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/video/livestream/v1/resources.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.video.livestream.v1;

/**
 *
 *
 * 
 * Clip is a sub-resource under channel. Each clip represents a clipping
 * operation that generates a VOD playlist from its channel given a set of
 * timestamp ranges.
 * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Clip} */ public final class Clip extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Clip) ClipOrBuilder { private static final long serialVersionUID = 0L; // Use Clip.newBuilder() to construct. private Clip(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Clip() { name_ = ""; state_ = 0; outputUri_ = ""; slices_ = java.util.Collections.emptyList(); clipManifests_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Clip(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Clip.class, com.google.cloud.video.livestream.v1.Clip.Builder.class); } /** * * *
   * State of clipping operation.
   * 
* * Protobuf enum {@code google.cloud.video.livestream.v1.Clip.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * State is not specified.
     * 
* * STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), /** * * *
     * The operation is pending to be picked up by the server.
     * 
* * PENDING = 1; */ PENDING(1), /** * * *
     * The server admitted this create clip request, and
     * outputs are under processing.
     * 
* * CREATING = 2; */ CREATING(2), /** * * *
     * Outputs are available in the specified Cloud Storage bucket. For
     * additional information, see the `outputs` field.
     * 
* * SUCCEEDED = 3; */ SUCCEEDED(3), /** * * *
     * The operation has failed. For additional information, see the `error`
     * field.
     * 
* * FAILED = 4; */ FAILED(4), UNRECOGNIZED(-1), ; /** * * *
     * State is not specified.
     * 
* * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** * * *
     * The operation is pending to be picked up by the server.
     * 
* * PENDING = 1; */ public static final int PENDING_VALUE = 1; /** * * *
     * The server admitted this create clip request, and
     * outputs are under processing.
     * 
* * CREATING = 2; */ public static final int CREATING_VALUE = 2; /** * * *
     * Outputs are available in the specified Cloud Storage bucket. For
     * additional information, see the `outputs` field.
     * 
* * SUCCEEDED = 3; */ public static final int SUCCEEDED_VALUE = 3; /** * * *
     * The operation has failed. For additional information, see the `error`
     * field.
     * 
* * FAILED = 4; */ public static final int FAILED_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static State forNumber(int value) { switch (value) { case 0: return STATE_UNSPECIFIED; case 1: return PENDING; case 2: return CREATING; case 3: return SUCCEEDED; case 4: return FAILED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public State findValueByNumber(int number) { return State.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.video.livestream.v1.Clip.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private State(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.video.livestream.v1.Clip.State) } public interface TimeSliceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.Clip.TimeSlice) com.google.protobuf.MessageOrBuilder { /** * * *
     * The mark-in Unix epoch time in the original live stream manifest.
     * 
* * .google.protobuf.Timestamp markin_time = 1; * * @return Whether the markinTime field is set. */ boolean hasMarkinTime(); /** * * *
     * The mark-in Unix epoch time in the original live stream manifest.
     * 
* * .google.protobuf.Timestamp markin_time = 1; * * @return The markinTime. */ com.google.protobuf.Timestamp getMarkinTime(); /** * * *
     * The mark-in Unix epoch time in the original live stream manifest.
     * 
* * .google.protobuf.Timestamp markin_time = 1; */ com.google.protobuf.TimestampOrBuilder getMarkinTimeOrBuilder(); /** * * *
     * The mark-out Unix epoch time in the original live stream manifest.
     * 
* * .google.protobuf.Timestamp markout_time = 2; * * @return Whether the markoutTime field is set. */ boolean hasMarkoutTime(); /** * * *
     * The mark-out Unix epoch time in the original live stream manifest.
     * 
* * .google.protobuf.Timestamp markout_time = 2; * * @return The markoutTime. */ com.google.protobuf.Timestamp getMarkoutTime(); /** * * *
     * The mark-out Unix epoch time in the original live stream manifest.
     * 
* * .google.protobuf.Timestamp markout_time = 2; */ com.google.protobuf.TimestampOrBuilder getMarkoutTimeOrBuilder(); } /** * * *
   * TimeSlice represents a tuple of Unix epoch timestamps that specifies a time
   * range.
   * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Clip.TimeSlice} */ public static final class TimeSlice extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Clip.TimeSlice) TimeSliceOrBuilder { private static final long serialVersionUID = 0L; // Use TimeSlice.newBuilder() to construct. private TimeSlice(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TimeSlice() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TimeSlice(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_TimeSlice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_TimeSlice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Clip.TimeSlice.class, com.google.cloud.video.livestream.v1.Clip.TimeSlice.Builder.class); } private int bitField0_; public static final int MARKIN_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp markinTime_; /** * * *
     * The mark-in Unix epoch time in the original live stream manifest.
     * 
* * .google.protobuf.Timestamp markin_time = 1; * * @return Whether the markinTime field is set. */ @java.lang.Override public boolean hasMarkinTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * The mark-in Unix epoch time in the original live stream manifest.
     * 
* * .google.protobuf.Timestamp markin_time = 1; * * @return The markinTime. */ @java.lang.Override public com.google.protobuf.Timestamp getMarkinTime() { return markinTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : markinTime_; } /** * * *
     * The mark-in Unix epoch time in the original live stream manifest.
     * 
* * .google.protobuf.Timestamp markin_time = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getMarkinTimeOrBuilder() { return markinTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : markinTime_; } public static final int MARKOUT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp markoutTime_; /** * * *
     * The mark-out Unix epoch time in the original live stream manifest.
     * 
* * .google.protobuf.Timestamp markout_time = 2; * * @return Whether the markoutTime field is set. */ @java.lang.Override public boolean hasMarkoutTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * The mark-out Unix epoch time in the original live stream manifest.
     * 
* * .google.protobuf.Timestamp markout_time = 2; * * @return The markoutTime. */ @java.lang.Override public com.google.protobuf.Timestamp getMarkoutTime() { return markoutTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : markoutTime_; } /** * * *
     * The mark-out Unix epoch time in the original live stream manifest.
     * 
* * .google.protobuf.Timestamp markout_time = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getMarkoutTimeOrBuilder() { return markoutTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : markoutTime_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMarkinTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getMarkoutTime()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMarkinTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMarkoutTime()); } 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.video.livestream.v1.Clip.TimeSlice)) { return super.equals(obj); } com.google.cloud.video.livestream.v1.Clip.TimeSlice other = (com.google.cloud.video.livestream.v1.Clip.TimeSlice) obj; if (hasMarkinTime() != other.hasMarkinTime()) return false; if (hasMarkinTime()) { if (!getMarkinTime().equals(other.getMarkinTime())) return false; } if (hasMarkoutTime() != other.hasMarkoutTime()) return false; if (hasMarkoutTime()) { if (!getMarkoutTime().equals(other.getMarkoutTime())) 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(); if (hasMarkinTime()) { hash = (37 * hash) + MARKIN_TIME_FIELD_NUMBER; hash = (53 * hash) + getMarkinTime().hashCode(); } if (hasMarkoutTime()) { hash = (37 * hash) + MARKOUT_TIME_FIELD_NUMBER; hash = (53 * hash) + getMarkoutTime().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.video.livestream.v1.Clip.TimeSlice parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Clip.TimeSlice 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.video.livestream.v1.Clip.TimeSlice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Clip.TimeSlice 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.video.livestream.v1.Clip.TimeSlice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Clip.TimeSlice parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Clip.TimeSlice parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Clip.TimeSlice 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.video.livestream.v1.Clip.TimeSlice parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Clip.TimeSlice 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.video.livestream.v1.Clip.TimeSlice parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Clip.TimeSlice 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.video.livestream.v1.Clip.TimeSlice 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; } /** * * *
     * TimeSlice represents a tuple of Unix epoch timestamps that specifies a time
     * range.
     * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Clip.TimeSlice} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Clip.TimeSlice) com.google.cloud.video.livestream.v1.Clip.TimeSliceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_TimeSlice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_TimeSlice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Clip.TimeSlice.class, com.google.cloud.video.livestream.v1.Clip.TimeSlice.Builder.class); } // Construct using com.google.cloud.video.livestream.v1.Clip.TimeSlice.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMarkinTimeFieldBuilder(); getMarkoutTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; markinTime_ = null; if (markinTimeBuilder_ != null) { markinTimeBuilder_.dispose(); markinTimeBuilder_ = null; } markoutTime_ = null; if (markoutTimeBuilder_ != null) { markoutTimeBuilder_.dispose(); markoutTimeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_TimeSlice_descriptor; } @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.TimeSlice getDefaultInstanceForType() { return com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance(); } @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.TimeSlice build() { com.google.cloud.video.livestream.v1.Clip.TimeSlice result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.TimeSlice buildPartial() { com.google.cloud.video.livestream.v1.Clip.TimeSlice result = new com.google.cloud.video.livestream.v1.Clip.TimeSlice(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.video.livestream.v1.Clip.TimeSlice result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.markinTime_ = markinTimeBuilder_ == null ? markinTime_ : markinTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.markoutTime_ = markoutTimeBuilder_ == null ? markoutTime_ : markoutTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } 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.video.livestream.v1.Clip.TimeSlice) { return mergeFrom((com.google.cloud.video.livestream.v1.Clip.TimeSlice) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.video.livestream.v1.Clip.TimeSlice other) { if (other == com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance()) return this; if (other.hasMarkinTime()) { mergeMarkinTime(other.getMarkinTime()); } if (other.hasMarkoutTime()) { mergeMarkoutTime(other.getMarkoutTime()); } 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: { input.readMessage(getMarkinTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMarkoutTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 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 com.google.protobuf.Timestamp markinTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> markinTimeBuilder_; /** * * *
       * The mark-in Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markin_time = 1; * * @return Whether the markinTime field is set. */ public boolean hasMarkinTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * The mark-in Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markin_time = 1; * * @return The markinTime. */ public com.google.protobuf.Timestamp getMarkinTime() { if (markinTimeBuilder_ == null) { return markinTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : markinTime_; } else { return markinTimeBuilder_.getMessage(); } } /** * * *
       * The mark-in Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markin_time = 1; */ public Builder setMarkinTime(com.google.protobuf.Timestamp value) { if (markinTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } markinTime_ = value; } else { markinTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The mark-in Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markin_time = 1; */ public Builder setMarkinTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (markinTimeBuilder_ == null) { markinTime_ = builderForValue.build(); } else { markinTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The mark-in Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markin_time = 1; */ public Builder mergeMarkinTime(com.google.protobuf.Timestamp value) { if (markinTimeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && markinTime_ != null && markinTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getMarkinTimeBuilder().mergeFrom(value); } else { markinTime_ = value; } } else { markinTimeBuilder_.mergeFrom(value); } if (markinTime_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
       * The mark-in Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markin_time = 1; */ public Builder clearMarkinTime() { bitField0_ = (bitField0_ & ~0x00000001); markinTime_ = null; if (markinTimeBuilder_ != null) { markinTimeBuilder_.dispose(); markinTimeBuilder_ = null; } onChanged(); return this; } /** * * *
       * The mark-in Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markin_time = 1; */ public com.google.protobuf.Timestamp.Builder getMarkinTimeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMarkinTimeFieldBuilder().getBuilder(); } /** * * *
       * The mark-in Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markin_time = 1; */ public com.google.protobuf.TimestampOrBuilder getMarkinTimeOrBuilder() { if (markinTimeBuilder_ != null) { return markinTimeBuilder_.getMessageOrBuilder(); } else { return markinTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : markinTime_; } } /** * * *
       * The mark-in Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markin_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getMarkinTimeFieldBuilder() { if (markinTimeBuilder_ == null) { markinTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getMarkinTime(), getParentForChildren(), isClean()); markinTime_ = null; } return markinTimeBuilder_; } private com.google.protobuf.Timestamp markoutTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> markoutTimeBuilder_; /** * * *
       * The mark-out Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markout_time = 2; * * @return Whether the markoutTime field is set. */ public boolean hasMarkoutTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * The mark-out Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markout_time = 2; * * @return The markoutTime. */ public com.google.protobuf.Timestamp getMarkoutTime() { if (markoutTimeBuilder_ == null) { return markoutTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : markoutTime_; } else { return markoutTimeBuilder_.getMessage(); } } /** * * *
       * The mark-out Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markout_time = 2; */ public Builder setMarkoutTime(com.google.protobuf.Timestamp value) { if (markoutTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } markoutTime_ = value; } else { markoutTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The mark-out Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markout_time = 2; */ public Builder setMarkoutTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (markoutTimeBuilder_ == null) { markoutTime_ = builderForValue.build(); } else { markoutTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The mark-out Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markout_time = 2; */ public Builder mergeMarkoutTime(com.google.protobuf.Timestamp value) { if (markoutTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && markoutTime_ != null && markoutTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getMarkoutTimeBuilder().mergeFrom(value); } else { markoutTime_ = value; } } else { markoutTimeBuilder_.mergeFrom(value); } if (markoutTime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
       * The mark-out Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markout_time = 2; */ public Builder clearMarkoutTime() { bitField0_ = (bitField0_ & ~0x00000002); markoutTime_ = null; if (markoutTimeBuilder_ != null) { markoutTimeBuilder_.dispose(); markoutTimeBuilder_ = null; } onChanged(); return this; } /** * * *
       * The mark-out Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markout_time = 2; */ public com.google.protobuf.Timestamp.Builder getMarkoutTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMarkoutTimeFieldBuilder().getBuilder(); } /** * * *
       * The mark-out Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markout_time = 2; */ public com.google.protobuf.TimestampOrBuilder getMarkoutTimeOrBuilder() { if (markoutTimeBuilder_ != null) { return markoutTimeBuilder_.getMessageOrBuilder(); } else { return markoutTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : markoutTime_; } } /** * * *
       * The mark-out Unix epoch time in the original live stream manifest.
       * 
* * .google.protobuf.Timestamp markout_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getMarkoutTimeFieldBuilder() { if (markoutTimeBuilder_ == null) { markoutTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getMarkoutTime(), getParentForChildren(), isClean()); markoutTime_ = null; } return markoutTimeBuilder_; } @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.video.livestream.v1.Clip.TimeSlice) } // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Clip.TimeSlice) private static final com.google.cloud.video.livestream.v1.Clip.TimeSlice DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Clip.TimeSlice(); } public static com.google.cloud.video.livestream.v1.Clip.TimeSlice getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TimeSlice 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.video.livestream.v1.Clip.TimeSlice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SliceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.Clip.Slice) com.google.protobuf.MessageOrBuilder { /** * * *
     * A slice in form of a tuple of Unix epoch time.
     * 
* * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; * * @return Whether the timeSlice field is set. */ boolean hasTimeSlice(); /** * * *
     * A slice in form of a tuple of Unix epoch time.
     * 
* * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; * * @return The timeSlice. */ com.google.cloud.video.livestream.v1.Clip.TimeSlice getTimeSlice(); /** * * *
     * A slice in form of a tuple of Unix epoch time.
     * 
* * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; */ com.google.cloud.video.livestream.v1.Clip.TimeSliceOrBuilder getTimeSliceOrBuilder(); com.google.cloud.video.livestream.v1.Clip.Slice.KindCase getKindCase(); } /** * * *
   * Slice represents a slice of the requested clip.
   * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Clip.Slice} */ public static final class Slice extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Clip.Slice) SliceOrBuilder { private static final long serialVersionUID = 0L; // Use Slice.newBuilder() to construct. private Slice(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Slice() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Slice(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_Slice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_Slice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Clip.Slice.class, com.google.cloud.video.livestream.v1.Clip.Slice.Builder.class); } private int kindCase_ = 0; @SuppressWarnings("serial") private java.lang.Object kind_; public enum KindCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TIME_SLICE(1), KIND_NOT_SET(0); private final int value; private KindCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static KindCase valueOf(int value) { return forNumber(value); } public static KindCase forNumber(int value) { switch (value) { case 1: return TIME_SLICE; case 0: return KIND_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public KindCase getKindCase() { return KindCase.forNumber(kindCase_); } public static final int TIME_SLICE_FIELD_NUMBER = 1; /** * * *
     * A slice in form of a tuple of Unix epoch time.
     * 
* * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; * * @return Whether the timeSlice field is set. */ @java.lang.Override public boolean hasTimeSlice() { return kindCase_ == 1; } /** * * *
     * A slice in form of a tuple of Unix epoch time.
     * 
* * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; * * @return The timeSlice. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.TimeSlice getTimeSlice() { if (kindCase_ == 1) { return (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_; } return com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance(); } /** * * *
     * A slice in form of a tuple of Unix epoch time.
     * 
* * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; */ @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.TimeSliceOrBuilder getTimeSliceOrBuilder() { if (kindCase_ == 1) { return (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_; } return com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance(); } 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 (kindCase_ == 1) { output.writeMessage(1, (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (kindCase_ == 1) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_); } 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.video.livestream.v1.Clip.Slice)) { return super.equals(obj); } com.google.cloud.video.livestream.v1.Clip.Slice other = (com.google.cloud.video.livestream.v1.Clip.Slice) obj; if (!getKindCase().equals(other.getKindCase())) return false; switch (kindCase_) { case 1: if (!getTimeSlice().equals(other.getTimeSlice())) return false; break; case 0: default: } 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(); switch (kindCase_) { case 1: hash = (37 * hash) + TIME_SLICE_FIELD_NUMBER; hash = (53 * hash) + getTimeSlice().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.video.livestream.v1.Clip.Slice parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Clip.Slice 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.video.livestream.v1.Clip.Slice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Clip.Slice 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.video.livestream.v1.Clip.Slice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Clip.Slice parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Clip.Slice parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Clip.Slice 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.video.livestream.v1.Clip.Slice parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Clip.Slice 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.video.livestream.v1.Clip.Slice parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Clip.Slice 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.video.livestream.v1.Clip.Slice 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; } /** * * *
     * Slice represents a slice of the requested clip.
     * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Clip.Slice} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Clip.Slice) com.google.cloud.video.livestream.v1.Clip.SliceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_Slice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_Slice_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Clip.Slice.class, com.google.cloud.video.livestream.v1.Clip.Slice.Builder.class); } // Construct using com.google.cloud.video.livestream.v1.Clip.Slice.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (timeSliceBuilder_ != null) { timeSliceBuilder_.clear(); } kindCase_ = 0; kind_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_Slice_descriptor; } @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.Slice getDefaultInstanceForType() { return com.google.cloud.video.livestream.v1.Clip.Slice.getDefaultInstance(); } @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.Slice build() { com.google.cloud.video.livestream.v1.Clip.Slice result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.Slice buildPartial() { com.google.cloud.video.livestream.v1.Clip.Slice result = new com.google.cloud.video.livestream.v1.Clip.Slice(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.cloud.video.livestream.v1.Clip.Slice result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.google.cloud.video.livestream.v1.Clip.Slice result) { result.kindCase_ = kindCase_; result.kind_ = this.kind_; if (kindCase_ == 1 && timeSliceBuilder_ != null) { result.kind_ = timeSliceBuilder_.build(); } } @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.video.livestream.v1.Clip.Slice) { return mergeFrom((com.google.cloud.video.livestream.v1.Clip.Slice) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.video.livestream.v1.Clip.Slice other) { if (other == com.google.cloud.video.livestream.v1.Clip.Slice.getDefaultInstance()) return this; switch (other.getKindCase()) { case TIME_SLICE: { mergeTimeSlice(other.getTimeSlice()); break; } case KIND_NOT_SET: { break; } } 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: { input.readMessage(getTimeSliceFieldBuilder().getBuilder(), extensionRegistry); kindCase_ = 1; break; } // case 10 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 kindCase_ = 0; private java.lang.Object kind_; public KindCase getKindCase() { return KindCase.forNumber(kindCase_); } public Builder clearKind() { kindCase_ = 0; kind_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Clip.TimeSlice, com.google.cloud.video.livestream.v1.Clip.TimeSlice.Builder, com.google.cloud.video.livestream.v1.Clip.TimeSliceOrBuilder> timeSliceBuilder_; /** * * *
       * A slice in form of a tuple of Unix epoch time.
       * 
* * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; * * @return Whether the timeSlice field is set. */ @java.lang.Override public boolean hasTimeSlice() { return kindCase_ == 1; } /** * * *
       * A slice in form of a tuple of Unix epoch time.
       * 
* * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; * * @return The timeSlice. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.TimeSlice getTimeSlice() { if (timeSliceBuilder_ == null) { if (kindCase_ == 1) { return (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_; } return com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance(); } else { if (kindCase_ == 1) { return timeSliceBuilder_.getMessage(); } return com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance(); } } /** * * *
       * A slice in form of a tuple of Unix epoch time.
       * 
* * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; */ public Builder setTimeSlice(com.google.cloud.video.livestream.v1.Clip.TimeSlice value) { if (timeSliceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { timeSliceBuilder_.setMessage(value); } kindCase_ = 1; return this; } /** * * *
       * A slice in form of a tuple of Unix epoch time.
       * 
* * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; */ public Builder setTimeSlice( com.google.cloud.video.livestream.v1.Clip.TimeSlice.Builder builderForValue) { if (timeSliceBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { timeSliceBuilder_.setMessage(builderForValue.build()); } kindCase_ = 1; return this; } /** * * *
       * A slice in form of a tuple of Unix epoch time.
       * 
* * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; */ public Builder mergeTimeSlice(com.google.cloud.video.livestream.v1.Clip.TimeSlice value) { if (timeSliceBuilder_ == null) { if (kindCase_ == 1 && kind_ != com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance()) { kind_ = com.google.cloud.video.livestream.v1.Clip.TimeSlice.newBuilder( (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_) .mergeFrom(value) .buildPartial(); } else { kind_ = value; } onChanged(); } else { if (kindCase_ == 1) { timeSliceBuilder_.mergeFrom(value); } else { timeSliceBuilder_.setMessage(value); } } kindCase_ = 1; return this; } /** * * *
       * A slice in form of a tuple of Unix epoch time.
       * 
* * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; */ public Builder clearTimeSlice() { if (timeSliceBuilder_ == null) { if (kindCase_ == 1) { kindCase_ = 0; kind_ = null; onChanged(); } } else { if (kindCase_ == 1) { kindCase_ = 0; kind_ = null; } timeSliceBuilder_.clear(); } return this; } /** * * *
       * A slice in form of a tuple of Unix epoch time.
       * 
* * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; */ public com.google.cloud.video.livestream.v1.Clip.TimeSlice.Builder getTimeSliceBuilder() { return getTimeSliceFieldBuilder().getBuilder(); } /** * * *
       * A slice in form of a tuple of Unix epoch time.
       * 
* * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; */ @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.TimeSliceOrBuilder getTimeSliceOrBuilder() { if ((kindCase_ == 1) && (timeSliceBuilder_ != null)) { return timeSliceBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 1) { return (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_; } return com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance(); } } /** * * *
       * A slice in form of a tuple of Unix epoch time.
       * 
* * .google.cloud.video.livestream.v1.Clip.TimeSlice time_slice = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Clip.TimeSlice, com.google.cloud.video.livestream.v1.Clip.TimeSlice.Builder, com.google.cloud.video.livestream.v1.Clip.TimeSliceOrBuilder> getTimeSliceFieldBuilder() { if (timeSliceBuilder_ == null) { if (!(kindCase_ == 1)) { kind_ = com.google.cloud.video.livestream.v1.Clip.TimeSlice.getDefaultInstance(); } timeSliceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.video.livestream.v1.Clip.TimeSlice, com.google.cloud.video.livestream.v1.Clip.TimeSlice.Builder, com.google.cloud.video.livestream.v1.Clip.TimeSliceOrBuilder>( (com.google.cloud.video.livestream.v1.Clip.TimeSlice) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 1; onChanged(); return timeSliceBuilder_; } @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.video.livestream.v1.Clip.Slice) } // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Clip.Slice) private static final com.google.cloud.video.livestream.v1.Clip.Slice DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Clip.Slice(); } public static com.google.cloud.video.livestream.v1.Clip.Slice getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Slice 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.video.livestream.v1.Clip.Slice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClipManifestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.video.livestream.v1.Clip.ClipManifest) com.google.protobuf.MessageOrBuilder { /** * * *
     * Required. A unique key that identifies a manifest config in the parent
     * channel. This key is the same as `channel.manifests.key` for the selected
     * manifest.
     * 
* * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The manifestKey. */ java.lang.String getManifestKey(); /** * * *
     * Required. A unique key that identifies a manifest config in the parent
     * channel. This key is the same as `channel.manifests.key` for the selected
     * manifest.
     * 
* * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for manifestKey. */ com.google.protobuf.ByteString getManifestKeyBytes(); /** * * *
     * Output only. The output URI of the generated clip manifest. This field
     * will be populated when the CreateClip request is accepted. Current output
     * format is provided below but may change in the future. Please read this
     * field to get the uri to the generated clip manifest. Format:
     * {clip.output_uri}/{channel.manifest.fileName} Example:
     * gs://my-bucket/clip-outputs/main.m3u8
     * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The outputUri. */ java.lang.String getOutputUri(); /** * * *
     * Output only. The output URI of the generated clip manifest. This field
     * will be populated when the CreateClip request is accepted. Current output
     * format is provided below but may change in the future. Please read this
     * field to get the uri to the generated clip manifest. Format:
     * {clip.output_uri}/{channel.manifest.fileName} Example:
     * gs://my-bucket/clip-outputs/main.m3u8
     * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for outputUri. */ com.google.protobuf.ByteString getOutputUriBytes(); } /** * * *
   * ClipManifest identifies a source manifest for the generated clip manifest.
   * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Clip.ClipManifest} */ public static final class ClipManifest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.video.livestream.v1.Clip.ClipManifest) ClipManifestOrBuilder { private static final long serialVersionUID = 0L; // Use ClipManifest.newBuilder() to construct. private ClipManifest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClipManifest() { manifestKey_ = ""; outputUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClipManifest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_ClipManifest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_ClipManifest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Clip.ClipManifest.class, com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder.class); } public static final int MANIFEST_KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object manifestKey_ = ""; /** * * *
     * Required. A unique key that identifies a manifest config in the parent
     * channel. This key is the same as `channel.manifests.key` for the selected
     * manifest.
     * 
* * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The manifestKey. */ @java.lang.Override public java.lang.String getManifestKey() { java.lang.Object ref = manifestKey_; 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(); manifestKey_ = s; return s; } } /** * * *
     * Required. A unique key that identifies a manifest config in the parent
     * channel. This key is the same as `channel.manifests.key` for the selected
     * manifest.
     * 
* * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for manifestKey. */ @java.lang.Override public com.google.protobuf.ByteString getManifestKeyBytes() { java.lang.Object ref = manifestKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); manifestKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OUTPUT_URI_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object outputUri_ = ""; /** * * *
     * Output only. The output URI of the generated clip manifest. This field
     * will be populated when the CreateClip request is accepted. Current output
     * format is provided below but may change in the future. Please read this
     * field to get the uri to the generated clip manifest. Format:
     * {clip.output_uri}/{channel.manifest.fileName} Example:
     * gs://my-bucket/clip-outputs/main.m3u8
     * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The outputUri. */ @java.lang.Override public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; 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(); outputUri_ = s; return s; } } /** * * *
     * Output only. The output URI of the generated clip manifest. This field
     * will be populated when the CreateClip request is accepted. Current output
     * format is provided below but may change in the future. Please read this
     * field to get the uri to the generated clip manifest. Format:
     * {clip.output_uri}/{channel.manifest.fileName} Example:
     * gs://my-bucket/clip-outputs/main.m3u8
     * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for outputUri. */ @java.lang.Override public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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(manifestKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, manifestKey_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputUri_); } 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(manifestKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, manifestKey_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputUri_); } 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.video.livestream.v1.Clip.ClipManifest)) { return super.equals(obj); } com.google.cloud.video.livestream.v1.Clip.ClipManifest other = (com.google.cloud.video.livestream.v1.Clip.ClipManifest) obj; if (!getManifestKey().equals(other.getManifestKey())) return false; if (!getOutputUri().equals(other.getOutputUri())) 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) + MANIFEST_KEY_FIELD_NUMBER; hash = (53 * hash) + getManifestKey().hashCode(); hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; hash = (53 * hash) + getOutputUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.video.livestream.v1.Clip.ClipManifest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Clip.ClipManifest 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.video.livestream.v1.Clip.ClipManifest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Clip.ClipManifest 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.video.livestream.v1.Clip.ClipManifest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Clip.ClipManifest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Clip.ClipManifest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Clip.ClipManifest 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.video.livestream.v1.Clip.ClipManifest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Clip.ClipManifest 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.video.livestream.v1.Clip.ClipManifest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Clip.ClipManifest 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.video.livestream.v1.Clip.ClipManifest 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; } /** * * *
     * ClipManifest identifies a source manifest for the generated clip manifest.
     * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Clip.ClipManifest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Clip.ClipManifest) com.google.cloud.video.livestream.v1.Clip.ClipManifestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_ClipManifest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_ClipManifest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Clip.ClipManifest.class, com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder.class); } // Construct using com.google.cloud.video.livestream.v1.Clip.ClipManifest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; manifestKey_ = ""; outputUri_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_ClipManifest_descriptor; } @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.ClipManifest getDefaultInstanceForType() { return com.google.cloud.video.livestream.v1.Clip.ClipManifest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.ClipManifest build() { com.google.cloud.video.livestream.v1.Clip.ClipManifest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.ClipManifest buildPartial() { com.google.cloud.video.livestream.v1.Clip.ClipManifest result = new com.google.cloud.video.livestream.v1.Clip.ClipManifest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.video.livestream.v1.Clip.ClipManifest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.manifestKey_ = manifestKey_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.outputUri_ = outputUri_; } } @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.video.livestream.v1.Clip.ClipManifest) { return mergeFrom((com.google.cloud.video.livestream.v1.Clip.ClipManifest) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.video.livestream.v1.Clip.ClipManifest other) { if (other == com.google.cloud.video.livestream.v1.Clip.ClipManifest.getDefaultInstance()) return this; if (!other.getManifestKey().isEmpty()) { manifestKey_ = other.manifestKey_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getOutputUri().isEmpty()) { outputUri_ = other.outputUri_; bitField0_ |= 0x00000002; onChanged(); } 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: { manifestKey_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { outputUri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 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 manifestKey_ = ""; /** * * *
       * Required. A unique key that identifies a manifest config in the parent
       * channel. This key is the same as `channel.manifests.key` for the selected
       * manifest.
       * 
* * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The manifestKey. */ public java.lang.String getManifestKey() { java.lang.Object ref = manifestKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifestKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Required. A unique key that identifies a manifest config in the parent
       * channel. This key is the same as `channel.manifests.key` for the selected
       * manifest.
       * 
* * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for manifestKey. */ public com.google.protobuf.ByteString getManifestKeyBytes() { java.lang.Object ref = manifestKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); manifestKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Required. A unique key that identifies a manifest config in the parent
       * channel. This key is the same as `channel.manifests.key` for the selected
       * manifest.
       * 
* * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The manifestKey to set. * @return This builder for chaining. */ public Builder setManifestKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } manifestKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Required. A unique key that identifies a manifest config in the parent
       * channel. This key is the same as `channel.manifests.key` for the selected
       * manifest.
       * 
* * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearManifestKey() { manifestKey_ = getDefaultInstance().getManifestKey(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Required. A unique key that identifies a manifest config in the parent
       * channel. This key is the same as `channel.manifests.key` for the selected
       * manifest.
       * 
* * string manifest_key = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for manifestKey to set. * @return This builder for chaining. */ public Builder setManifestKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); manifestKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object outputUri_ = ""; /** * * *
       * Output only. The output URI of the generated clip manifest. This field
       * will be populated when the CreateClip request is accepted. Current output
       * format is provided below but may change in the future. Please read this
       * field to get the uri to the generated clip manifest. Format:
       * {clip.output_uri}/{channel.manifest.fileName} Example:
       * gs://my-bucket/clip-outputs/main.m3u8
       * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUri_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * Output only. The output URI of the generated clip manifest. This field
       * will be populated when the CreateClip request is accepted. Current output
       * format is provided below but may change in the future. Please read this
       * field to get the uri to the generated clip manifest. Format:
       * {clip.output_uri}/{channel.manifest.fileName} Example:
       * gs://my-bucket/clip-outputs/main.m3u8
       * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for outputUri. */ public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Output only. The output URI of the generated clip manifest. This field
       * will be populated when the CreateClip request is accepted. Current output
       * format is provided below but may change in the future. Please read this
       * field to get the uri to the generated clip manifest. Format:
       * {clip.output_uri}/{channel.manifest.fileName} Example:
       * gs://my-bucket/clip-outputs/main.m3u8
       * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The outputUri to set. * @return This builder for chaining. */ public Builder setOutputUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } outputUri_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Output only. The output URI of the generated clip manifest. This field
       * will be populated when the CreateClip request is accepted. Current output
       * format is provided below but may change in the future. Please read this
       * field to get the uri to the generated clip manifest. Format:
       * {clip.output_uri}/{channel.manifest.fileName} Example:
       * gs://my-bucket/clip-outputs/main.m3u8
       * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearOutputUri() { outputUri_ = getDefaultInstance().getOutputUri(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * Output only. The output URI of the generated clip manifest. This field
       * will be populated when the CreateClip request is accepted. Current output
       * format is provided below but may change in the future. Please read this
       * field to get the uri to the generated clip manifest. Format:
       * {clip.output_uri}/{channel.manifest.fileName} Example:
       * gs://my-bucket/clip-outputs/main.m3u8
       * 
* * string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for outputUri to set. * @return This builder for chaining. */ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); outputUri_ = value; bitField0_ |= 0x00000002; 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:google.cloud.video.livestream.v1.Clip.ClipManifest) } // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Clip.ClipManifest) private static final com.google.cloud.video.livestream.v1.Clip.ClipManifest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Clip.ClipManifest(); } public static com.google.cloud.video.livestream.v1.Clip.ClipManifest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClipManifest 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.video.livestream.v1.Clip.ClipManifest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * The resource name of the clip, in the following format:
   * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
   * `{clipId}` is a user-specified resource id that conforms to the following
   * criteria:
   *
   * 1. 1 character minimum, 63 characters maximum
   * 2. Only contains letters, digits, underscores, and hyphens
   * 
* * string name = 1; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * * *
   * The resource name of the clip, in the following format:
   * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
   * `{clipId}` is a user-specified resource id that conforms to the following
   * criteria:
   *
   * 1. 1 character minimum, 63 characters maximum
   * 2. Only contains letters, digits, underscores, and hyphens
   * 
* * string name = 1; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** * * *
   * Output only. The creation timestamp of the clip resource.
   * 
* * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Output only. The creation timestamp of the clip resource.
   * 
* * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
   * Output only. The creation timestamp of the clip resource.
   * 
* * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp startTime_; /** * * *
   * Output only. The timestamp when the clip request starts to be processed.
   * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the startTime field is set. */ @java.lang.Override public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Output only. The timestamp when the clip request starts to be processed.
   * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The startTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** * * *
   * Output only. The timestamp when the clip request starts to be processed.
   * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** * * *
   * Output only. The update timestamp of the clip resource.
   * 
* * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Output only. The update timestamp of the clip resource.
   * 
* * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** * * *
   * Output only. The update timestamp of the clip resource.
   * 
* * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 5; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
   * The labels associated with this resource. Each label is a key-value pair.
   * 
* * map<string, string> labels = 5; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
   * The labels associated with this resource. Each label is a key-value pair.
   * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
   * The labels associated with this resource. Each label is a key-value pair.
   * 
* * map<string, string> labels = 5; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * The labels associated with this resource. Each label is a key-value pair.
   * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int STATE_FIELD_NUMBER = 6; private int state_ = 0; /** * * *
   * Output only. The state of the clip.
   * 
* * * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
   * Output only. The state of the clip.
   * 
* * * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.State getState() { com.google.cloud.video.livestream.v1.Clip.State result = com.google.cloud.video.livestream.v1.Clip.State.forNumber(state_); return result == null ? com.google.cloud.video.livestream.v1.Clip.State.UNRECOGNIZED : result; } public static final int OUTPUT_URI_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object outputUri_ = ""; /** * * *
   * Specify the `output_uri` to determine where to place the clip segments and
   * clip manifest files in Cloud Storage. The manifests specified in
   * `clip_manifests` fields will be placed under this URI. The exact URI of the
   * generated manifests will be provided in `clip_manifests.output_uri` for
   * each manifest.
   * Example:
   * "output_uri": "gs://my-bucket/clip-outputs"
   * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
   * 
* * string output_uri = 7; * * @return The outputUri. */ @java.lang.Override public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; 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(); outputUri_ = s; return s; } } /** * * *
   * Specify the `output_uri` to determine where to place the clip segments and
   * clip manifest files in Cloud Storage. The manifests specified in
   * `clip_manifests` fields will be placed under this URI. The exact URI of the
   * generated manifests will be provided in `clip_manifests.output_uri` for
   * each manifest.
   * Example:
   * "output_uri": "gs://my-bucket/clip-outputs"
   * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
   * 
* * string output_uri = 7; * * @return The bytes for outputUri. */ @java.lang.Override public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ERROR_FIELD_NUMBER = 9; private com.google.rpc.Status error_; /** * * *
   * Output only. An error object that describes the reason for the failure.
   * This property only presents when `state` is `FAILED`.
   * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Output only. An error object that describes the reason for the failure.
   * This property only presents when `state` is `FAILED`.
   * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** * * *
   * Output only. An error object that describes the reason for the failure.
   * This property only presents when `state` is `FAILED`.
   * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } public static final int SLICES_FIELD_NUMBER = 10; @SuppressWarnings("serial") private java.util.List slices_; /** * * *
   * The specified ranges of segments to generate a clip.
   * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ @java.lang.Override public java.util.List getSlicesList() { return slices_; } /** * * *
   * The specified ranges of segments to generate a clip.
   * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ @java.lang.Override public java.util.List getSlicesOrBuilderList() { return slices_; } /** * * *
   * The specified ranges of segments to generate a clip.
   * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ @java.lang.Override public int getSlicesCount() { return slices_.size(); } /** * * *
   * The specified ranges of segments to generate a clip.
   * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.Slice getSlices(int index) { return slices_.get(index); } /** * * *
   * The specified ranges of segments to generate a clip.
   * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.SliceOrBuilder getSlicesOrBuilder(int index) { return slices_.get(index); } public static final int CLIP_MANIFESTS_FIELD_NUMBER = 12; @SuppressWarnings("serial") private java.util.List clipManifests_; /** * * *
   * Required. A list of clip manifests. Currently only one clip manifest is
   * allowed.
   * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public java.util.List getClipManifestsList() { return clipManifests_; } /** * * *
   * Required. A list of clip manifests. Currently only one clip manifest is
   * allowed.
   * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public java.util.List getClipManifestsOrBuilderList() { return clipManifests_; } /** * * *
   * Required. A list of clip manifests. Currently only one clip manifest is
   * allowed.
   * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public int getClipManifestsCount() { return clipManifests_.size(); } /** * * *
   * Required. A list of clip manifests. Currently only one clip manifest is
   * allowed.
   * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.ClipManifest getClipManifests(int index) { return clipManifests_.get(index); } /** * * *
   * Required. A list of clip manifests. Currently only one clip manifest is
   * allowed.
   * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.ClipManifestOrBuilder getClipManifestsOrBuilder( int index) { return clipManifests_.get(index); } 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getStartTime()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getUpdateTime()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); if (state_ != com.google.cloud.video.livestream.v1.Clip.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, outputUri_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(9, getError()); } for (int i = 0; i < slices_.size(); i++) { output.writeMessage(10, slices_.get(i)); } for (int i = 0; i < clipManifests_.size(); i++) { output.writeMessage(12, clipManifests_.get(i)); } 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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); } if (state_ != com.google.cloud.video.livestream.v1.Clip.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, outputUri_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getError()); } for (int i = 0; i < slices_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, slices_.get(i)); } for (int i = 0; i < clipManifests_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, clipManifests_.get(i)); } 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.video.livestream.v1.Clip)) { return super.equals(obj); } com.google.cloud.video.livestream.v1.Clip other = (com.google.cloud.video.livestream.v1.Clip) obj; if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime().equals(other.getStartTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (state_ != other.state_) return false; if (!getOutputUri().equals(other.getOutputUri())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { if (!getError().equals(other.getError())) return false; } if (!getSlicesList().equals(other.getSlicesList())) return false; if (!getClipManifestsList().equals(other.getClipManifestsList())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; hash = (53 * hash) + getOutputUri().hashCode(); if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } if (getSlicesCount() > 0) { hash = (37 * hash) + SLICES_FIELD_NUMBER; hash = (53 * hash) + getSlicesList().hashCode(); } if (getClipManifestsCount() > 0) { hash = (37 * hash) + CLIP_MANIFESTS_FIELD_NUMBER; hash = (53 * hash) + getClipManifestsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.video.livestream.v1.Clip parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Clip 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.video.livestream.v1.Clip parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Clip 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.video.livestream.v1.Clip parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.video.livestream.v1.Clip parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.video.livestream.v1.Clip parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Clip 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.video.livestream.v1.Clip parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Clip 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.video.livestream.v1.Clip parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.video.livestream.v1.Clip 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.video.livestream.v1.Clip 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; } /** * * *
   * Clip is a sub-resource under channel. Each clip represents a clipping
   * operation that generates a VOD playlist from its channel given a set of
   * timestamp ranges.
   * 
* * Protobuf type {@code google.cloud.video.livestream.v1.Clip} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.video.livestream.v1.Clip) com.google.cloud.video.livestream.v1.ClipOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 5: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.video.livestream.v1.Clip.class, com.google.cloud.video.livestream.v1.Clip.Builder.class); } // Construct using com.google.cloud.video.livestream.v1.Clip.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getStartTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getErrorFieldBuilder(); getSlicesFieldBuilder(); getClipManifestsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); state_ = 0; outputUri_ = ""; error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); errorBuilder_ = null; } if (slicesBuilder_ == null) { slices_ = java.util.Collections.emptyList(); } else { slices_ = null; slicesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); if (clipManifestsBuilder_ == null) { clipManifests_ = java.util.Collections.emptyList(); } else { clipManifests_ = null; clipManifestsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.video.livestream.v1.ResourcesProto .internal_static_google_cloud_video_livestream_v1_Clip_descriptor; } @java.lang.Override public com.google.cloud.video.livestream.v1.Clip getDefaultInstanceForType() { return com.google.cloud.video.livestream.v1.Clip.getDefaultInstance(); } @java.lang.Override public com.google.cloud.video.livestream.v1.Clip build() { com.google.cloud.video.livestream.v1.Clip result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.video.livestream.v1.Clip buildPartial() { com.google.cloud.video.livestream.v1.Clip result = new com.google.cloud.video.livestream.v1.Clip(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.cloud.video.livestream.v1.Clip result) { if (slicesBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { slices_ = java.util.Collections.unmodifiableList(slices_); bitField0_ = (bitField0_ & ~0x00000100); } result.slices_ = slices_; } else { result.slices_ = slicesBuilder_.build(); } if (clipManifestsBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0)) { clipManifests_ = java.util.Collections.unmodifiableList(clipManifests_); bitField0_ = (bitField0_ & ~0x00000200); } result.clipManifests_ = clipManifests_; } else { result.clipManifests_ = clipManifestsBuilder_.build(); } } private void buildPartial0(com.google.cloud.video.livestream.v1.Clip result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.state_ = state_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.outputUri_ = outputUri_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); to_bitField0_ |= 0x00000008; } 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.video.livestream.v1.Clip) { return mergeFrom((com.google.cloud.video.livestream.v1.Clip) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.video.livestream.v1.Clip other) { if (other == com.google.cloud.video.livestream.v1.Clip.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000010; if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (!other.getOutputUri().isEmpty()) { outputUri_ = other.outputUri_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasError()) { mergeError(other.getError()); } if (slicesBuilder_ == null) { if (!other.slices_.isEmpty()) { if (slices_.isEmpty()) { slices_ = other.slices_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureSlicesIsMutable(); slices_.addAll(other.slices_); } onChanged(); } } else { if (!other.slices_.isEmpty()) { if (slicesBuilder_.isEmpty()) { slicesBuilder_.dispose(); slicesBuilder_ = null; slices_ = other.slices_; bitField0_ = (bitField0_ & ~0x00000100); slicesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSlicesFieldBuilder() : null; } else { slicesBuilder_.addAllMessages(other.slices_); } } } if (clipManifestsBuilder_ == null) { if (!other.clipManifests_.isEmpty()) { if (clipManifests_.isEmpty()) { clipManifests_ = other.clipManifests_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureClipManifestsIsMutable(); clipManifests_.addAll(other.clipManifests_); } onChanged(); } } else { if (!other.clipManifests_.isEmpty()) { if (clipManifestsBuilder_.isEmpty()) { clipManifestsBuilder_.dispose(); clipManifestsBuilder_ = null; clipManifests_ = other.clipManifests_; bitField0_ = (bitField0_ & ~0x00000200); clipManifestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getClipManifestsFieldBuilder() : null; } else { clipManifestsBuilder_.addAllMessages(other.clipManifests_); } } } 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: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); bitField0_ |= 0x00000010; break; } // case 42 case 48: { state_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { outputUri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 74: { input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 74 case 82: { com.google.cloud.video.livestream.v1.Clip.Slice m = input.readMessage( com.google.cloud.video.livestream.v1.Clip.Slice.parser(), extensionRegistry); if (slicesBuilder_ == null) { ensureSlicesIsMutable(); slices_.add(m); } else { slicesBuilder_.addMessage(m); } break; } // case 82 case 98: { com.google.cloud.video.livestream.v1.Clip.ClipManifest m = input.readMessage( com.google.cloud.video.livestream.v1.Clip.ClipManifest.parser(), extensionRegistry); if (clipManifestsBuilder_ == null) { ensureClipManifestsIsMutable(); clipManifests_.add(m); } else { clipManifestsBuilder_.addMessage(m); } break; } // case 98 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 name_ = ""; /** * * *
     * The resource name of the clip, in the following format:
     * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
     * `{clipId}` is a user-specified resource id that conforms to the following
     * criteria:
     *
     * 1. 1 character minimum, 63 characters maximum
     * 2. Only contains letters, digits, underscores, and hyphens
     * 
* * string name = 1; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The resource name of the clip, in the following format:
     * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
     * `{clipId}` is a user-specified resource id that conforms to the following
     * criteria:
     *
     * 1. 1 character minimum, 63 characters maximum
     * 2. Only contains letters, digits, underscores, and hyphens
     * 
* * string name = 1; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The resource name of the clip, in the following format:
     * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
     * `{clipId}` is a user-specified resource id that conforms to the following
     * criteria:
     *
     * 1. 1 character minimum, 63 characters maximum
     * 2. Only contains letters, digits, underscores, and hyphens
     * 
* * string name = 1; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The resource name of the clip, in the following format:
     * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
     * `{clipId}` is a user-specified resource id that conforms to the following
     * criteria:
     *
     * 1. 1 character minimum, 63 characters maximum
     * 2. Only contains letters, digits, underscores, and hyphens
     * 
* * string name = 1; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The resource name of the clip, in the following format:
     * `projects/{project}/locations/{location}/channels/{c}/clips/{clipId}`.
     * `{clipId}` is a user-specified resource id that conforms to the following
     * criteria:
     *
     * 1. 1 character minimum, 63 characters maximum
     * 2. Only contains letters, digits, underscores, and hyphens
     * 
* * string name = 1; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** * * *
     * Output only. The creation timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Output only. The creation timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** * * *
     * Output only. The creation timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. The creation timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. The creation timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Output only. The creation timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The creation timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The creation timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** * * *
     * Output only. The creation timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** * * *
     * Output only. The timestamp when the clip request starts to be processed.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Output only. The timestamp when the clip request starts to be processed.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** * * *
     * Output only. The timestamp when the clip request starts to be processed.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startTime_ = value; } else { startTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The timestamp when the clip request starts to be processed.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The timestamp when the clip request starts to be processed.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && startTime_ != null && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } } else { startTimeBuilder_.mergeFrom(value); } if (startTime_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * Output only. The timestamp when the clip request starts to be processed.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000004); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The timestamp when the clip request starts to be processed.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The timestamp when the clip request starts to be processed.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** * * *
     * Output only. The timestamp when the clip request starts to be processed.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** * * *
     * Output only. The update timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Output only. The update timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** * * *
     * Output only. The update timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateTime_ = value; } else { updateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. The update timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. The update timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } } else { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Output only. The update timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The update timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The update timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** * * *
     * Output only. The update timestamp of the clip resource.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } bitField0_ |= 0x00000010; onChanged(); return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
     * The labels associated with this resource. Each label is a key-value pair.
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
     * The labels associated with this resource. Each label is a key-value pair.
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
     * The labels associated with this resource. Each label is a key-value pair.
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * The labels associated with this resource. Each label is a key-value pair.
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
     * The labels associated with this resource. Each label is a key-value pair.
     * 
* * map<string, string> labels = 5; */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000010; return internalGetMutableLabels().getMutableMap(); } /** * * *
     * The labels associated with this resource. Each label is a key-value pair.
     * 
* * map<string, string> labels = 5; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** * * *
     * The labels associated with this resource. Each label is a key-value pair.
     * 
* * map<string, string> labels = 5; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000010; return this; } private int state_ = 0; /** * * *
     * Output only. The state of the clip.
     * 
* * * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
     * Output only. The state of the clip.
     * 
* * * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Output only. The state of the clip.
     * 
* * * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.video.livestream.v1.Clip.State getState() { com.google.cloud.video.livestream.v1.Clip.State result = com.google.cloud.video.livestream.v1.Clip.State.forNumber(state_); return result == null ? com.google.cloud.video.livestream.v1.Clip.State.UNRECOGNIZED : result; } /** * * *
     * Output only. The state of the clip.
     * 
* * * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The state to set. * @return This builder for chaining. */ public Builder setState(com.google.cloud.video.livestream.v1.Clip.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; state_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. The state of the clip.
     * 
* * * .google.cloud.video.livestream.v1.Clip.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000020); state_ = 0; onChanged(); return this; } private java.lang.Object outputUri_ = ""; /** * * *
     * Specify the `output_uri` to determine where to place the clip segments and
     * clip manifest files in Cloud Storage. The manifests specified in
     * `clip_manifests` fields will be placed under this URI. The exact URI of the
     * generated manifests will be provided in `clip_manifests.output_uri` for
     * each manifest.
     * Example:
     * "output_uri": "gs://my-bucket/clip-outputs"
     * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
     * 
* * string output_uri = 7; * * @return The outputUri. */ public java.lang.String getOutputUri() { java.lang.Object ref = outputUri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputUri_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Specify the `output_uri` to determine where to place the clip segments and
     * clip manifest files in Cloud Storage. The manifests specified in
     * `clip_manifests` fields will be placed under this URI. The exact URI of the
     * generated manifests will be provided in `clip_manifests.output_uri` for
     * each manifest.
     * Example:
     * "output_uri": "gs://my-bucket/clip-outputs"
     * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
     * 
* * string output_uri = 7; * * @return The bytes for outputUri. */ public com.google.protobuf.ByteString getOutputUriBytes() { java.lang.Object ref = outputUri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Specify the `output_uri` to determine where to place the clip segments and
     * clip manifest files in Cloud Storage. The manifests specified in
     * `clip_manifests` fields will be placed under this URI. The exact URI of the
     * generated manifests will be provided in `clip_manifests.output_uri` for
     * each manifest.
     * Example:
     * "output_uri": "gs://my-bucket/clip-outputs"
     * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
     * 
* * string output_uri = 7; * * @param value The outputUri to set. * @return This builder for chaining. */ public Builder setOutputUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } outputUri_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Specify the `output_uri` to determine where to place the clip segments and
     * clip manifest files in Cloud Storage. The manifests specified in
     * `clip_manifests` fields will be placed under this URI. The exact URI of the
     * generated manifests will be provided in `clip_manifests.output_uri` for
     * each manifest.
     * Example:
     * "output_uri": "gs://my-bucket/clip-outputs"
     * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
     * 
* * string output_uri = 7; * * @return This builder for chaining. */ public Builder clearOutputUri() { outputUri_ = getDefaultInstance().getOutputUri(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * Specify the `output_uri` to determine where to place the clip segments and
     * clip manifest files in Cloud Storage. The manifests specified in
     * `clip_manifests` fields will be placed under this URI. The exact URI of the
     * generated manifests will be provided in `clip_manifests.output_uri` for
     * each manifest.
     * Example:
     * "output_uri": "gs://my-bucket/clip-outputs"
     * "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"
     * 
* * string output_uri = 7; * * @param value The bytes for outputUri to set. * @return This builder for chaining. */ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); outputUri_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private com.google.rpc.Status error_; private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** * * *
     * Output only. An error object that describes the reason for the failure.
     * This property only presents when `state` is `FAILED`.
     * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
     * Output only. An error object that describes the reason for the failure.
     * This property only presents when `state` is `FAILED`.
     * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The error. */ public com.google.rpc.Status getError() { if (errorBuilder_ == null) { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * * *
     * Output only. An error object that describes the reason for the failure.
     * This property only presents when `state` is `FAILED`.
     * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setError(com.google.rpc.Status value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; } else { errorBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Output only. An error object that describes the reason for the failure.
     * This property only presents when `state` is `FAILED`.
     * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { errorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Output only. An error object that describes the reason for the failure.
     * This property only presents when `state` is `FAILED`.
     * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && error_ != null && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; } } else { errorBuilder_.mergeFrom(value); } if (error_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * * *
     * Output only. An error object that describes the reason for the failure.
     * This property only presents when `state` is `FAILED`.
     * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000080); error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); errorBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. An error object that describes the reason for the failure.
     * This property only presents when `state` is `FAILED`.
     * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { bitField0_ |= 0x00000080; onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * * *
     * Output only. An error object that describes the reason for the failure.
     * This property only presents when `state` is `FAILED`.
     * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } } /** * * *
     * Output only. An error object that describes the reason for the failure.
     * This property only presents when `state` is `FAILED`.
     * 
* * .google.rpc.Status error = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private java.util.List slices_ = java.util.Collections.emptyList(); private void ensureSlicesIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { slices_ = new java.util.ArrayList(slices_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.video.livestream.v1.Clip.Slice, com.google.cloud.video.livestream.v1.Clip.Slice.Builder, com.google.cloud.video.livestream.v1.Clip.SliceOrBuilder> slicesBuilder_; /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public java.util.List getSlicesList() { if (slicesBuilder_ == null) { return java.util.Collections.unmodifiableList(slices_); } else { return slicesBuilder_.getMessageList(); } } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public int getSlicesCount() { if (slicesBuilder_ == null) { return slices_.size(); } else { return slicesBuilder_.getCount(); } } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public com.google.cloud.video.livestream.v1.Clip.Slice getSlices(int index) { if (slicesBuilder_ == null) { return slices_.get(index); } else { return slicesBuilder_.getMessage(index); } } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public Builder setSlices(int index, com.google.cloud.video.livestream.v1.Clip.Slice value) { if (slicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSlicesIsMutable(); slices_.set(index, value); onChanged(); } else { slicesBuilder_.setMessage(index, value); } return this; } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public Builder setSlices( int index, com.google.cloud.video.livestream.v1.Clip.Slice.Builder builderForValue) { if (slicesBuilder_ == null) { ensureSlicesIsMutable(); slices_.set(index, builderForValue.build()); onChanged(); } else { slicesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public Builder addSlices(com.google.cloud.video.livestream.v1.Clip.Slice value) { if (slicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSlicesIsMutable(); slices_.add(value); onChanged(); } else { slicesBuilder_.addMessage(value); } return this; } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public Builder addSlices(int index, com.google.cloud.video.livestream.v1.Clip.Slice value) { if (slicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSlicesIsMutable(); slices_.add(index, value); onChanged(); } else { slicesBuilder_.addMessage(index, value); } return this; } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public Builder addSlices( com.google.cloud.video.livestream.v1.Clip.Slice.Builder builderForValue) { if (slicesBuilder_ == null) { ensureSlicesIsMutable(); slices_.add(builderForValue.build()); onChanged(); } else { slicesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public Builder addSlices( int index, com.google.cloud.video.livestream.v1.Clip.Slice.Builder builderForValue) { if (slicesBuilder_ == null) { ensureSlicesIsMutable(); slices_.add(index, builderForValue.build()); onChanged(); } else { slicesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public Builder addAllSlices( java.lang.Iterable values) { if (slicesBuilder_ == null) { ensureSlicesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, slices_); onChanged(); } else { slicesBuilder_.addAllMessages(values); } return this; } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public Builder clearSlices() { if (slicesBuilder_ == null) { slices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { slicesBuilder_.clear(); } return this; } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public Builder removeSlices(int index) { if (slicesBuilder_ == null) { ensureSlicesIsMutable(); slices_.remove(index); onChanged(); } else { slicesBuilder_.remove(index); } return this; } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public com.google.cloud.video.livestream.v1.Clip.Slice.Builder getSlicesBuilder(int index) { return getSlicesFieldBuilder().getBuilder(index); } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public com.google.cloud.video.livestream.v1.Clip.SliceOrBuilder getSlicesOrBuilder(int index) { if (slicesBuilder_ == null) { return slices_.get(index); } else { return slicesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public java.util.List getSlicesOrBuilderList() { if (slicesBuilder_ != null) { return slicesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(slices_); } } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public com.google.cloud.video.livestream.v1.Clip.Slice.Builder addSlicesBuilder() { return getSlicesFieldBuilder() .addBuilder(com.google.cloud.video.livestream.v1.Clip.Slice.getDefaultInstance()); } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public com.google.cloud.video.livestream.v1.Clip.Slice.Builder addSlicesBuilder(int index) { return getSlicesFieldBuilder() .addBuilder(index, com.google.cloud.video.livestream.v1.Clip.Slice.getDefaultInstance()); } /** * * *
     * The specified ranges of segments to generate a clip.
     * 
* * repeated .google.cloud.video.livestream.v1.Clip.Slice slices = 10; */ public java.util.List getSlicesBuilderList() { return getSlicesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.video.livestream.v1.Clip.Slice, com.google.cloud.video.livestream.v1.Clip.Slice.Builder, com.google.cloud.video.livestream.v1.Clip.SliceOrBuilder> getSlicesFieldBuilder() { if (slicesBuilder_ == null) { slicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.video.livestream.v1.Clip.Slice, com.google.cloud.video.livestream.v1.Clip.Slice.Builder, com.google.cloud.video.livestream.v1.Clip.SliceOrBuilder>( slices_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); slices_ = null; } return slicesBuilder_; } private java.util.List clipManifests_ = java.util.Collections.emptyList(); private void ensureClipManifestsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { clipManifests_ = new java.util.ArrayList( clipManifests_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.video.livestream.v1.Clip.ClipManifest, com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder, com.google.cloud.video.livestream.v1.Clip.ClipManifestOrBuilder> clipManifestsBuilder_; /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List getClipManifestsList() { if (clipManifestsBuilder_ == null) { return java.util.Collections.unmodifiableList(clipManifests_); } else { return clipManifestsBuilder_.getMessageList(); } } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public int getClipManifestsCount() { if (clipManifestsBuilder_ == null) { return clipManifests_.size(); } else { return clipManifestsBuilder_.getCount(); } } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.video.livestream.v1.Clip.ClipManifest getClipManifests(int index) { if (clipManifestsBuilder_ == null) { return clipManifests_.get(index); } else { return clipManifestsBuilder_.getMessage(index); } } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setClipManifests( int index, com.google.cloud.video.livestream.v1.Clip.ClipManifest value) { if (clipManifestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClipManifestsIsMutable(); clipManifests_.set(index, value); onChanged(); } else { clipManifestsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setClipManifests( int index, com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder builderForValue) { if (clipManifestsBuilder_ == null) { ensureClipManifestsIsMutable(); clipManifests_.set(index, builderForValue.build()); onChanged(); } else { clipManifestsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addClipManifests(com.google.cloud.video.livestream.v1.Clip.ClipManifest value) { if (clipManifestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClipManifestsIsMutable(); clipManifests_.add(value); onChanged(); } else { clipManifestsBuilder_.addMessage(value); } return this; } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addClipManifests( int index, com.google.cloud.video.livestream.v1.Clip.ClipManifest value) { if (clipManifestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClipManifestsIsMutable(); clipManifests_.add(index, value); onChanged(); } else { clipManifestsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addClipManifests( com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder builderForValue) { if (clipManifestsBuilder_ == null) { ensureClipManifestsIsMutable(); clipManifests_.add(builderForValue.build()); onChanged(); } else { clipManifestsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addClipManifests( int index, com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder builderForValue) { if (clipManifestsBuilder_ == null) { ensureClipManifestsIsMutable(); clipManifests_.add(index, builderForValue.build()); onChanged(); } else { clipManifestsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addAllClipManifests( java.lang.Iterable values) { if (clipManifestsBuilder_ == null) { ensureClipManifestsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clipManifests_); onChanged(); } else { clipManifestsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearClipManifests() { if (clipManifestsBuilder_ == null) { clipManifests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { clipManifestsBuilder_.clear(); } return this; } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder removeClipManifests(int index) { if (clipManifestsBuilder_ == null) { ensureClipManifestsIsMutable(); clipManifests_.remove(index); onChanged(); } else { clipManifestsBuilder_.remove(index); } return this; } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder getClipManifestsBuilder( int index) { return getClipManifestsFieldBuilder().getBuilder(index); } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.video.livestream.v1.Clip.ClipManifestOrBuilder getClipManifestsOrBuilder(int index) { if (clipManifestsBuilder_ == null) { return clipManifests_.get(index); } else { return clipManifestsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List getClipManifestsOrBuilderList() { if (clipManifestsBuilder_ != null) { return clipManifestsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(clipManifests_); } } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder addClipManifestsBuilder() { return getClipManifestsFieldBuilder() .addBuilder(com.google.cloud.video.livestream.v1.Clip.ClipManifest.getDefaultInstance()); } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder addClipManifestsBuilder( int index) { return getClipManifestsFieldBuilder() .addBuilder( index, com.google.cloud.video.livestream.v1.Clip.ClipManifest.getDefaultInstance()); } /** * * *
     * Required. A list of clip manifests. Currently only one clip manifest is
     * allowed.
     * 
* * * repeated .google.cloud.video.livestream.v1.Clip.ClipManifest clip_manifests = 12 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List getClipManifestsBuilderList() { return getClipManifestsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.video.livestream.v1.Clip.ClipManifest, com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder, com.google.cloud.video.livestream.v1.Clip.ClipManifestOrBuilder> getClipManifestsFieldBuilder() { if (clipManifestsBuilder_ == null) { clipManifestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.video.livestream.v1.Clip.ClipManifest, com.google.cloud.video.livestream.v1.Clip.ClipManifest.Builder, com.google.cloud.video.livestream.v1.Clip.ClipManifestOrBuilder>( clipManifests_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); clipManifests_ = null; } return clipManifestsBuilder_; } @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.video.livestream.v1.Clip) } // @@protoc_insertion_point(class_scope:google.cloud.video.livestream.v1.Clip) private static final com.google.cloud.video.livestream.v1.Clip DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.video.livestream.v1.Clip(); } public static com.google.cloud.video.livestream.v1.Clip getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Clip 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.video.livestream.v1.Clip getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy