Class LoggingServer.Builder (0.49.0)

public static final class LoggingServer.Builder extends GeneratedMessageV3.Builder<LoggingServer.Builder> implements LoggingServerOrBuilder

Logging server to receive vCenter or ESXi logs.

Protobuf type google.cloud.vmwareengine.v1.LoggingServer

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LoggingServer build()
Returns
Type Description
LoggingServer

buildPartial()

public LoggingServer buildPartial()
Returns
Type Description
LoggingServer

clear()

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

clearCreateTime()

public LoggingServer.Builder clearCreateTime()

Output only. Creation time of this resource.

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

Returns
Type Description
LoggingServer.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHostname()

public LoggingServer.Builder clearHostname()

Required. Fully-qualified domain name (FQDN) or IP Address of the logging server.

string hostname = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

clearName()

public LoggingServer.Builder clearName()

Output only. The resource name of this logging server. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPort()

public LoggingServer.Builder clearPort()

Required. Port number at which the logging server receives logs.

int32 port = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

clearProtocol()

public LoggingServer.Builder clearProtocol()

Required. Protocol used by vCenter to send logs to a logging server.

.google.cloud.vmwareengine.v1.LoggingServer.Protocol protocol = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

clearSourceType()

public LoggingServer.Builder clearSourceType()

Required. The type of component that produces logs that will be forwarded to this logging server.

.google.cloud.vmwareengine.v1.LoggingServer.SourceType source_type = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

clearUid()

public LoggingServer.Builder clearUid()

Output only. System-generated unique identifier for the resource.

string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

clearUpdateTime()

public LoggingServer.Builder clearUpdateTime()

Output only. Last update time of this resource.

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

Returns
Type Description
LoggingServer.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. Creation time of this resource.

.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. Creation time of this resource.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Creation time of this resource.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public LoggingServer getDefaultInstanceForType()
Returns
Type Description
LoggingServer

getDescriptorForType()

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

getHostname()

public String getHostname()

Required. Fully-qualified domain name (FQDN) or IP Address of the logging server.

string hostname = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The hostname.

getHostnameBytes()

public ByteString getHostnameBytes()

Required. Fully-qualified domain name (FQDN) or IP Address of the logging server.

string hostname = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for hostname.

getName()

public String getName()

Output only. The resource name of this logging server. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of this logging server. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getPort()

public int getPort()

Required. Port number at which the logging server receives logs.

int32 port = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The port.

getProtocol()

public LoggingServer.Protocol getProtocol()

Required. Protocol used by vCenter to send logs to a logging server.

.google.cloud.vmwareengine.v1.LoggingServer.Protocol protocol = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LoggingServer.Protocol

The protocol.

getProtocolValue()

public int getProtocolValue()

Required. Protocol used by vCenter to send logs to a logging server.

.google.cloud.vmwareengine.v1.LoggingServer.Protocol protocol = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for protocol.

getSourceType()

public LoggingServer.SourceType getSourceType()

Required. The type of component that produces logs that will be forwarded to this logging server.

.google.cloud.vmwareengine.v1.LoggingServer.SourceType source_type = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LoggingServer.SourceType

The sourceType.

getSourceTypeValue()

public int getSourceTypeValue()

Required. The type of component that produces logs that will be forwarded to this logging server.

.google.cloud.vmwareengine.v1.LoggingServer.SourceType source_type = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for sourceType.

getUid()

public String getUid()

Output only. System-generated unique identifier for the resource.

string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. System-generated unique identifier for the resource.

string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Last update time of this resource.

.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. Last update time of this resource.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Last update time of this resource.

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

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Creation time of this resource.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Last update time of this resource.

.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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public LoggingServer.Builder mergeCreateTime(Timestamp value)

Output only. Creation time of this resource.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
LoggingServer.Builder

mergeFrom(LoggingServer other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public LoggingServer.Builder mergeUpdateTime(Timestamp value)

Output only. Last update time of this resource.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
LoggingServer.Builder

setCreateTime(Timestamp value)

public LoggingServer.Builder setCreateTime(Timestamp value)

Output only. Creation time of this resource.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
LoggingServer.Builder

setCreateTime(Timestamp.Builder builderForValue)

public LoggingServer.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Creation time of this resource.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LoggingServer.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHostname(String value)

public LoggingServer.Builder setHostname(String value)

Required. Fully-qualified domain name (FQDN) or IP Address of the logging server.

string hostname = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The hostname to set.

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

setHostnameBytes(ByteString value)

public LoggingServer.Builder setHostnameBytes(ByteString value)

Required. Fully-qualified domain name (FQDN) or IP Address of the logging server.

string hostname = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for hostname to set.

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

setName(String value)

public LoggingServer.Builder setName(String value)

Output only. The resource name of this logging server. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LoggingServer.Builder setNameBytes(ByteString value)

Output only. The resource name of this logging server. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

setPort(int value)

public LoggingServer.Builder setPort(int value)

Required. Port number at which the logging server receives logs.

int32 port = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The port to set.

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

setProtocol(LoggingServer.Protocol value)

public LoggingServer.Builder setProtocol(LoggingServer.Protocol value)

Required. Protocol used by vCenter to send logs to a logging server.

.google.cloud.vmwareengine.v1.LoggingServer.Protocol protocol = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value LoggingServer.Protocol

The protocol to set.

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

setProtocolValue(int value)

public LoggingServer.Builder setProtocolValue(int value)

Required. Protocol used by vCenter to send logs to a logging server.

.google.cloud.vmwareengine.v1.LoggingServer.Protocol protocol = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for protocol to set.

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

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

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

setSourceType(LoggingServer.SourceType value)

public LoggingServer.Builder setSourceType(LoggingServer.SourceType value)

Required. The type of component that produces logs that will be forwarded to this logging server.

.google.cloud.vmwareengine.v1.LoggingServer.SourceType source_type = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value LoggingServer.SourceType

The sourceType to set.

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

setSourceTypeValue(int value)

public LoggingServer.Builder setSourceTypeValue(int value)

Required. The type of component that produces logs that will be forwarded to this logging server.

.google.cloud.vmwareengine.v1.LoggingServer.SourceType source_type = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for sourceType to set.

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

setUid(String value)

public LoggingServer.Builder setUid(String value)

Output only. System-generated unique identifier for the resource.

string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

setUidBytes(ByteString value)

public LoggingServer.Builder setUidBytes(ByteString value)

Output only. System-generated unique identifier for the resource.

string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
LoggingServer.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public LoggingServer.Builder setUpdateTime(Timestamp value)

Output only. Last update time of this resource.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
LoggingServer.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public LoggingServer.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Last update time of this resource.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LoggingServer.Builder