Class EndpointConfig.Builder (4.45.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearHttpPorts()

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EndpointConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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