Class Pool.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Pool.Builder>
com.google.cloud.video.livestream.v1.Pool.Builder
All Implemented Interfaces:
PoolOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Pool

public static final class Pool.Builder extends com.google.protobuf.GeneratedMessage.Builder<Pool.Builder> implements PoolOrBuilder
 Pool resource defines the configuration of Live Stream pools for a specific
 location. Currently we support only one pool resource per project per
 location. After the creation of the first input, a default pool is created
 automatically at "projects/{project}/locations/{location}/pools/default".
 
Protobuf type google.cloud.video.livestream.v1.Pool
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Pool.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Pool.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Pool.Builder>
    • clear

      public Pool.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Pool.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Pool.Builder>
    • getDefaultInstanceForType

      public Pool getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Pool build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Pool buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Pool.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Pool.Builder>
    • mergeFrom

      public Pool.Builder mergeFrom(Pool other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Pool.Builder>
    • mergeFrom

      public Pool.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Pool.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The resource name of the pool, in the form of:
       `projects/{project}/locations/{location}/pools/{poolId}`.
       
      string name = 1;
      Specified by:
      getName in interface PoolOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The resource name of the pool, in the form of:
       `projects/{project}/locations/{location}/pools/{poolId}`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface PoolOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Pool.Builder setName(String value)
       The resource name of the pool, in the form of:
       `projects/{project}/locations/{location}/pools/{poolId}`.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Pool.Builder clearName()
       The resource name of the pool, in the form of:
       `projects/{project}/locations/{location}/pools/{poolId}`.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Pool.Builder setNameBytes(com.google.protobuf.ByteString value)
       The resource name of the pool, in the form of:
       `projects/{project}/locations/{location}/pools/{poolId}`.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface PoolOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface PoolOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Pool.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Pool.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Pool.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Pool.Builder clearCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface PoolOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The update time.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface PoolOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The update time.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface PoolOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Pool.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The update time.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Pool.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The update time.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Pool.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The update time.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Pool.Builder clearUpdateTime()
       Output only. The update time.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The update time.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The update time.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface PoolOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: PoolOrBuilder
       User-defined key/value metadata.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsCount in interface PoolOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       User-defined key/value metadata.
       
      map<string, string> labels = 4;
      Specified by:
      containsLabels in interface PoolOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface PoolOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       User-defined key/value metadata.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsMap in interface PoolOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       User-defined key/value metadata.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrDefault in interface PoolOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       User-defined key/value metadata.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsOrThrow in interface PoolOrBuilder
    • clearLabels

      public Pool.Builder clearLabels()
    • removeLabels

      public Pool.Builder removeLabels(String key)
       User-defined key/value metadata.
       
      map<string, string> labels = 4;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Pool.Builder putLabels(String key, String value)
       User-defined key/value metadata.
       
      map<string, string> labels = 4;
    • putAllLabels

      public Pool.Builder putAllLabels(Map<String,String> values)
       User-defined key/value metadata.
       
      map<string, string> labels = 4;
    • hasNetworkConfig

      public boolean hasNetworkConfig()
       Network configuration for the pool.
       
      .google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;
      Specified by:
      hasNetworkConfig in interface PoolOrBuilder
      Returns:
      Whether the networkConfig field is set.
    • getNetworkConfig

      public Pool.NetworkConfig getNetworkConfig()
       Network configuration for the pool.
       
      .google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;
      Specified by:
      getNetworkConfig in interface PoolOrBuilder
      Returns:
      The networkConfig.
    • setNetworkConfig

      public Pool.Builder setNetworkConfig(Pool.NetworkConfig value)
       Network configuration for the pool.
       
      .google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;
    • setNetworkConfig

      public Pool.Builder setNetworkConfig(Pool.NetworkConfig.Builder builderForValue)
       Network configuration for the pool.
       
      .google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;
    • mergeNetworkConfig

      public Pool.Builder mergeNetworkConfig(Pool.NetworkConfig value)
       Network configuration for the pool.
       
      .google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;
    • clearNetworkConfig

      public Pool.Builder clearNetworkConfig()
       Network configuration for the pool.
       
      .google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;
    • getNetworkConfigBuilder

      public Pool.NetworkConfig.Builder getNetworkConfigBuilder()
       Network configuration for the pool.
       
      .google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;
    • getNetworkConfigOrBuilder

      public Pool.NetworkConfigOrBuilder getNetworkConfigOrBuilder()
       Network configuration for the pool.
       
      .google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;
      Specified by:
      getNetworkConfigOrBuilder in interface PoolOrBuilder