Class CreateMonitoredProjectRequest.Builder (0.15.0)

public static final class CreateMonitoredProjectRequest.Builder extends GeneratedMessageV3.Builder<CreateMonitoredProjectRequest.Builder> implements CreateMonitoredProjectRequestOrBuilder

Request for the CreateMonitoredProject method.

Protobuf type google.monitoring.metricsscope.v1.CreateMonitoredProjectRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateMonitoredProjectRequest build()
Returns
TypeDescription
CreateMonitoredProjectRequest

buildPartial()

public CreateMonitoredProjectRequest buildPartial()
Returns
TypeDescription
CreateMonitoredProjectRequest

clear()

public CreateMonitoredProjectRequest.Builder clear()
Returns
TypeDescription
CreateMonitoredProjectRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearMonitoredProject()

public CreateMonitoredProjectRequest.Builder clearMonitoredProject()

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateMonitoredProjectRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateMonitoredProjectRequest.Builder clearParent()

Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CreateMonitoredProjectRequest.Builder

This builder for chaining.

clone()

public CreateMonitoredProjectRequest.Builder clone()
Returns
TypeDescription
CreateMonitoredProjectRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateMonitoredProjectRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateMonitoredProjectRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMonitoredProject()

public MonitoredProject getMonitoredProject()

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
MonitoredProject

The monitoredProject.

getMonitoredProjectBuilder()

public MonitoredProject.Builder getMonitoredProjectBuilder()

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
MonitoredProject.Builder

getMonitoredProjectOrBuilder()

public MonitoredProjectOrBuilder getMonitoredProjectOrBuilder()

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
MonitoredProjectOrBuilder

getParent()

public String getParent()

Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

hasMonitoredProject()

public boolean hasMonitoredProject()

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the monitoredProject field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateMonitoredProjectRequest other)

public CreateMonitoredProjectRequest.Builder mergeFrom(CreateMonitoredProjectRequest other)
Parameter
NameDescription
otherCreateMonitoredProjectRequest
Returns
TypeDescription
CreateMonitoredProjectRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMonitoredProject(MonitoredProject value)

public CreateMonitoredProjectRequest.Builder mergeMonitoredProject(MonitoredProject value)

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueMonitoredProject
Returns
TypeDescription
CreateMonitoredProjectRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateMonitoredProjectRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateMonitoredProjectRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setMonitoredProject(MonitoredProject value)

public CreateMonitoredProjectRequest.Builder setMonitoredProject(MonitoredProject value)

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueMonitoredProject
Returns
TypeDescription
CreateMonitoredProjectRequest.Builder

setMonitoredProject(MonitoredProject.Builder builderForValue)

public CreateMonitoredProjectRequest.Builder setMonitoredProject(MonitoredProject.Builder builderForValue)

Required. The initial MonitoredProject configuration. Specify only the monitored_project.name field. All other fields are ignored. The monitored_project.name must be in the format: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}

.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueMonitoredProject.Builder
Returns
TypeDescription
CreateMonitoredProjectRequest.Builder

setParent(String value)

public CreateMonitoredProjectRequest.Builder setParent(String value)

Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateMonitoredProjectRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateMonitoredProjectRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateMonitoredProjectRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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