public static final class Logging.LoggingDestination.Builder extends GeneratedMessageV3.Builder<Logging.LoggingDestination.Builder> implements Logging.LoggingDestinationOrBuilder
Configuration of a specific logging destination (the producer project or the consumer project).
Protobuf type google.api.Logging.LoggingDestination
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Logging.LoggingDestination.BuilderImplements
Logging.LoggingDestinationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllLogs(Iterable<String> values)
public Logging.LoggingDestination.Builder addAllLogs(Iterable<String> values)
Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".
repeated string logs = 1;
Name | Description |
values | Iterable<String> The logs to add. |
Type | Description |
Logging.LoggingDestination.Builder | This builder for chaining. |
addLogs(String value)
public Logging.LoggingDestination.Builder addLogs(String value)
Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".
repeated string logs = 1;
Name | Description |
value | String The logs to add. |
Type | Description |
Logging.LoggingDestination.Builder | This builder for chaining. |
addLogsBytes(ByteString value)
public Logging.LoggingDestination.Builder addLogsBytes(ByteString value)
Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".
repeated string logs = 1;
Name | Description |
value | ByteString The bytes of the logs to add. |
Type | Description |
Logging.LoggingDestination.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Logging.LoggingDestination.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Logging.LoggingDestination.Builder |
build()
public Logging.LoggingDestination build()
Type | Description |
Logging.LoggingDestination |
buildPartial()
public Logging.LoggingDestination buildPartial()
Type | Description |
Logging.LoggingDestination |
clear()
public Logging.LoggingDestination.Builder clear()
Type | Description |
Logging.LoggingDestination.Builder |
clearField(Descriptors.FieldDescriptor field)
public Logging.LoggingDestination.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Logging.LoggingDestination.Builder |
clearLogs()
public Logging.LoggingDestination.Builder clearLogs()
Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".
repeated string logs = 1;
Type | Description |
Logging.LoggingDestination.Builder | This builder for chaining. |
clearMonitoredResource()
public Logging.LoggingDestination.Builder clearMonitoredResource()
The monitored resource type. The type must be defined in the Service.monitored_resources section.
string monitored_resource = 3;
Type | Description |
Logging.LoggingDestination.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Logging.LoggingDestination.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Logging.LoggingDestination.Builder |
clone()
public Logging.LoggingDestination.Builder clone()
Type | Description |
Logging.LoggingDestination.Builder |
getDefaultInstanceForType()
public Logging.LoggingDestination getDefaultInstanceForType()
Type | Description |
Logging.LoggingDestination |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLogs(int index)
public String getLogs(int index)
Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".
repeated string logs = 1;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The logs at the given index. |
getLogsBytes(int index)
public ByteString getLogsBytes(int index)
Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".
repeated string logs = 1;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the logs at the given index. |
getLogsCount()
public int getLogsCount()
Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".
repeated string logs = 1;
Type | Description |
int | The count of logs. |
getLogsList()
public ProtocolStringList getLogsList()
Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".
repeated string logs = 1;
Type | Description |
ProtocolStringList | A list containing the logs. |
getMonitoredResource()
public String getMonitoredResource()
The monitored resource type. The type must be defined in the Service.monitored_resources section.
string monitored_resource = 3;
Type | Description |
String | The monitoredResource. |
getMonitoredResourceBytes()
public ByteString getMonitoredResourceBytes()
The monitored resource type. The type must be defined in the Service.monitored_resources section.
string monitored_resource = 3;
Type | Description |
ByteString | The bytes for monitoredResource. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Logging.LoggingDestination other)
public Logging.LoggingDestination.Builder mergeFrom(Logging.LoggingDestination other)
Name | Description |
other | Logging.LoggingDestination |
Type | Description |
Logging.LoggingDestination.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Logging.LoggingDestination.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Logging.LoggingDestination.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Logging.LoggingDestination.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Logging.LoggingDestination.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Logging.LoggingDestination.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Logging.LoggingDestination.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Logging.LoggingDestination.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Logging.LoggingDestination.Builder |
setLogs(int index, String value)
public Logging.LoggingDestination.Builder setLogs(int index, String value)
Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".
repeated string logs = 1;
Name | Description |
index | int The index to set the value at. |
value | String The logs to set. |
Type | Description |
Logging.LoggingDestination.Builder | This builder for chaining. |
setMonitoredResource(String value)
public Logging.LoggingDestination.Builder setMonitoredResource(String value)
The monitored resource type. The type must be defined in the Service.monitored_resources section.
string monitored_resource = 3;
Name | Description |
value | String The monitoredResource to set. |
Type | Description |
Logging.LoggingDestination.Builder | This builder for chaining. |
setMonitoredResourceBytes(ByteString value)
public Logging.LoggingDestination.Builder setMonitoredResourceBytes(ByteString value)
The monitored resource type. The type must be defined in the Service.monitored_resources section.
string monitored_resource = 3;
Name | Description |
value | ByteString The bytes for monitoredResource to set. |
Type | Description |
Logging.LoggingDestination.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Logging.LoggingDestination.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Logging.LoggingDestination.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Logging.LoggingDestination.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Logging.LoggingDestination.Builder |