Class Pool.Builder (0.49.0)

public static final class Pool.Builder extends GeneratedMessageV3.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

Implements

PoolOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Pool.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Pool.Builder
Overrides

build()

public Pool build()
Returns
Type Description
Pool

buildPartial()

public Pool buildPartial()
Returns
Type Description
Pool

clear()

public Pool.Builder clear()
Returns
Type Description
Pool.Builder
Overrides

clearCreateTime()

public Pool.Builder clearCreateTime()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Pool.Builder

clearField(Descriptors.FieldDescriptor field)

public Pool.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Pool.Builder
Overrides

clearLabels()

public Pool.Builder clearLabels()
Returns
Type Description
Pool.Builder

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
Type Description
Pool.Builder

This builder for chaining.

clearNetworkConfig()

public Pool.Builder clearNetworkConfig()

Network configuration for the pool.

.google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;

Returns
Type Description
Pool.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Pool.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Pool.Builder
Overrides

clearUpdateTime()

public Pool.Builder clearUpdateTime()

Output only. The update time.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Pool.Builder

clone()

public Pool.Builder clone()
Returns
Type Description
Pool.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

User-defined key/value metadata.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Pool getDefaultInstanceForType()
Returns
Type Description
Pool

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

User-defined key/value metadata.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

User-defined key/value metadata.

map<string, string> labels = 4;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

User-defined key/value metadata.

map<string, string> labels = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

User-defined key/value metadata.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

The resource name of the pool, in the form of: projects/{project}/locations/{location}/pools/{poolId}.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the pool, in the form of: projects/{project}/locations/{location}/pools/{poolId}.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getNetworkConfig()

public Pool.NetworkConfig getNetworkConfig()

Network configuration for the pool.

.google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;

Returns
Type Description
Pool.NetworkConfig

The networkConfig.

getNetworkConfigBuilder()

public Pool.NetworkConfig.Builder getNetworkConfigBuilder()

Network configuration for the pool.

.google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;

Returns
Type Description
Pool.NetworkConfig.Builder

getNetworkConfigOrBuilder()

public Pool.NetworkConfigOrBuilder getNetworkConfigOrBuilder()

Network configuration for the pool.

.google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;

Returns
Type Description
Pool.NetworkConfigOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The update time.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The update time.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update time.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasNetworkConfig()

public boolean hasNetworkConfig()

Network configuration for the pool.

.google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;

Returns
Type Description
boolean

Whether the networkConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The update time.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Pool.Builder mergeCreateTime(Timestamp value)

Output only. The creation time.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Pool.Builder

mergeFrom(Pool other)

public Pool.Builder mergeFrom(Pool other)
Parameter
Name Description
other Pool
Returns
Type Description
Pool.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Pool.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Pool.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Pool.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Pool.Builder
Overrides

mergeNetworkConfig(Pool.NetworkConfig value)

public Pool.Builder mergeNetworkConfig(Pool.NetworkConfig value)

Network configuration for the pool.

.google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;

Parameter
Name Description
value Pool.NetworkConfig
Returns
Type Description
Pool.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Pool.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Pool.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Pool.Builder mergeUpdateTime(Timestamp value)

Output only. The update time.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Pool.Builder

putAllLabels(Map<String,String> values)

public Pool.Builder putAllLabels(Map<String,String> values)

User-defined key/value metadata.

map<string, string> labels = 4;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Pool.Builder

putLabels(String key, String value)

public Pool.Builder putLabels(String key, String value)

User-defined key/value metadata.

map<string, string> labels = 4;

Parameters
Name Description
key String
value String
Returns
Type Description
Pool.Builder

removeLabels(String key)

public Pool.Builder removeLabels(String key)

User-defined key/value metadata.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
Pool.Builder

setCreateTime(Timestamp value)

public Pool.Builder setCreateTime(Timestamp value)

Output only. The creation time.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Pool.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Pool.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation time.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Pool.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Pool.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Pool.Builder
Overrides

setName(String value)

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;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Pool.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Pool.Builder setNameBytes(ByteString value)

The resource name of the pool, in the form of: projects/{project}/locations/{location}/pools/{poolId}.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Pool.Builder

This builder for chaining.

setNetworkConfig(Pool.NetworkConfig value)

public Pool.Builder setNetworkConfig(Pool.NetworkConfig value)

Network configuration for the pool.

.google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;

Parameter
Name Description
value Pool.NetworkConfig
Returns
Type Description
Pool.Builder

setNetworkConfig(Pool.NetworkConfig.Builder builderForValue)

public Pool.Builder setNetworkConfig(Pool.NetworkConfig.Builder builderForValue)

Network configuration for the pool.

.google.cloud.video.livestream.v1.Pool.NetworkConfig network_config = 5;

Parameter
Name Description
builderForValue Pool.NetworkConfig.Builder
Returns
Type Description
Pool.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Pool.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Pool.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Pool.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Pool.Builder
Overrides

setUpdateTime(Timestamp value)

public Pool.Builder setUpdateTime(Timestamp value)

Output only. The update time.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Pool.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Pool.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The update time.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Pool.Builder