Class EndpointConfig.Builder (4.80.0)

public static final class EndpointConfig.Builder extends GeneratedMessage.Builder<EndpointConfig.Builder> implements EndpointConfigOrBuilder

Endpoint config for this cluster

Protobuf type google.cloud.dataproc.v1.EndpointConfig

Static Methods

getDescriptor()

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

Methods

build()

public EndpointConfig build()
Returns
Type Description
EndpointConfig

buildPartial()

public EndpointConfig buildPartial()
Returns
Type Description
EndpointConfig

clear()

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

clearEnableHttpPortAccess()

public EndpointConfig.Builder clearEnableHttpPortAccess()

Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false.

bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EndpointConfig.Builder

This builder for chaining.

clearHttpPorts()

public EndpointConfig.Builder clearHttpPorts()
Returns
Type Description
EndpointConfig.Builder

containsHttpPorts(String key)

public boolean containsHttpPorts(String key)

Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.

map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public EndpointConfig getDefaultInstanceForType()
Returns
Type Description
EndpointConfig

getDescriptorForType()

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

getEnableHttpPortAccess()

public boolean getEnableHttpPortAccess()

Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false.

bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enableHttpPortAccess.

getHttpPorts() (deprecated)

public Map<String,String> getHttpPorts()

Use #getHttpPortsMap() instead.

Returns
Type Description
Map<String,String>

getHttpPortsCount()

public int getHttpPortsCount()

Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.

map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getHttpPortsMap()

public Map<String,String> getHttpPortsMap()

Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.

map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,String>

getHttpPortsOrDefault(String key, String defaultValue)

public String getHttpPortsOrDefault(String key, String defaultValue)

Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.

map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getHttpPortsOrThrow(String key)

public String getHttpPortsOrThrow(String key)

Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.

map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableHttpPorts() (deprecated)

public Map<String,String> getMutableHttpPorts()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EndpointConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

putAllHttpPorts(Map<String,String> values)

public EndpointConfig.Builder putAllHttpPorts(Map<String,String> values)

Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.

map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

putHttpPorts(String key, String value)

public EndpointConfig.Builder putHttpPorts(String key, String value)

Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.

map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

removeHttpPorts(String key)

public EndpointConfig.Builder removeHttpPorts(String key)

Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.

map<string, string> http_ports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
EndpointConfig.Builder

setEnableHttpPortAccess(boolean value)

public EndpointConfig.Builder setEnableHttpPortAccess(boolean value)

Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false.

bool enable_http_port_access = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enableHttpPortAccess to set.

Returns
Type Description
EndpointConfig.Builder

This builder for chaining.