Class LoggingServer.Builder (0.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LoggingServer build()
Returns
TypeDescription
LoggingServer

buildPartial()

public LoggingServer buildPartial()
Returns
TypeDescription
LoggingServer

clear()

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

clearField(Descriptors.FieldDescriptor field)

public LoggingServer.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
LoggingServer.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public LoggingServer.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public LoggingServer getDefaultInstanceForType()
Returns
TypeDescription
LoggingServer

getDescriptorForType()

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

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

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

mergeFrom(LoggingServer other)

public LoggingServer.Builder mergeFrom(LoggingServer other)
Parameter
NameDescription
otherLoggingServer
Returns
TypeDescription
LoggingServer.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The hostname to set.

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

The bytes for hostname to set.

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

The name to set.

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

The bytes for name to set.

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

The port to set.

Returns
TypeDescription
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
NameDescription
valueLoggingServer.Protocol

The protocol to set.

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

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueLoggingServer.SourceType

The sourceType to set.

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

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

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

The uid to set.

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

The bytes for uid to set.

Returns
TypeDescription
LoggingServer.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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