Class Pool.Builder (0.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Pool.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Pool.Builder
Overrides

build()

public Pool build()
Returns
TypeDescription
Pool

buildPartial()

public Pool buildPartial()
Returns
TypeDescription
Pool

clear()

public Pool.Builder clear()
Returns
TypeDescription
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
TypeDescription
Pool.Builder

clearField(Descriptors.FieldDescriptor field)

public Pool.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Pool.Builder
Overrides

clearLabels()

public Pool.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Pool.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Pool.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Pool.Builder

clone()

public Pool.Builder clone()
Returns
TypeDescription
Pool.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

User-defined key/value metadata.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation time.

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

Returns
TypeDescription
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
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Pool getDefaultInstanceForType()
Returns
TypeDescription
Pool

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

User-defined key/value metadata.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

User-defined key/value metadata.

map<string, string> labels = 4;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

User-defined key/value metadata.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Pool.NetworkConfig.Builder

getNetworkConfigOrBuilder()

public Pool.NetworkConfigOrBuilder getNetworkConfigOrBuilder()

Network configuration for the pool.

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

Returns
TypeDescription
Pool.NetworkConfigOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The update time.

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

Returns
TypeDescription
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
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update time.

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

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation time.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Pool.Builder

mergeFrom(Pool other)

public Pool.Builder mergeFrom(Pool other)
Parameter
NameDescription
otherPool
Returns
TypeDescription
Pool.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Pool.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Pool.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Pool.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePool.NetworkConfig
Returns
TypeDescription
Pool.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Pool.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
Pool.Builder

removeLabels(String key)

public Pool.Builder removeLabels(String key)

User-defined key/value metadata.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Pool.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Pool.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valuePool.NetworkConfig
Returns
TypeDescription
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
NameDescription
builderForValuePool.NetworkConfig.Builder
Returns
TypeDescription
Pool.Builder

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

public Pool.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Pool.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Pool.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Pool.Builder