Class EndpointConfig.Builder (4.16.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EndpointConfig build()
Returns
TypeDescription
EndpointConfig

buildPartial()

public EndpointConfig buildPartial()
Returns
TypeDescription
EndpointConfig

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHttpPorts()

public EndpointConfig.Builder clearHttpPorts()
Returns
TypeDescription
EndpointConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public EndpointConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
EndpointConfig.Builder
Overrides

clone()

public EndpointConfig.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public EndpointConfig getDefaultInstanceForType()
Returns
TypeDescription
EndpointConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

The enableHttpPortAccess.

getHttpPorts()

public Map<String,String> getHttpPorts()

Use #getHttpPortsMap() instead.

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

getMutableHttpPorts()

public Map<String,String> getMutableHttpPorts()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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

mergeFrom(EndpointConfig other)

public EndpointConfig.Builder mergeFrom(EndpointConfig other)
Parameter
NameDescription
otherEndpointConfig
Returns
TypeDescription
EndpointConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public EndpointConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
EndpointConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The enableHttpPortAccess to set.

Returns
TypeDescription
EndpointConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final EndpointConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EndpointConfig.Builder
Overrides