Class CloudWorkspaceSourceContext.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CloudWorkspaceSourceContext.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CloudWorkspaceSourceContext.Builder>
      • getDefaultInstanceForType

        public CloudWorkspaceSourceContext getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CloudWorkspaceSourceContext build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CloudWorkspaceSourceContext buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CloudWorkspaceSourceContext.Builder>
      • mergeFrom

        public CloudWorkspaceSourceContext.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                      throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudWorkspaceSourceContext.Builder>
        Throws:
        IOException
      • hasWorkspaceId

        public boolean hasWorkspaceId()
         The ID of the workspace.
         
        .google.devtools.source.v1.CloudWorkspaceId workspace_id = 1;
        Specified by:
        hasWorkspaceId in interface CloudWorkspaceSourceContextOrBuilder
        Returns:
        Whether the workspaceId field is set.
      • getWorkspaceIdBuilder

        public CloudWorkspaceId.Builder getWorkspaceIdBuilder()
         The ID of the workspace.
         
        .google.devtools.source.v1.CloudWorkspaceId workspace_id = 1;
      • getSnapshotIdBytes

        public com.google.protobuf.ByteString getSnapshotIdBytes()
         The ID of the snapshot.
         An empty snapshot_id refers to the most recent snapshot.
         
        string snapshot_id = 2;
        Specified by:
        getSnapshotIdBytes in interface CloudWorkspaceSourceContextOrBuilder
        Returns:
        The bytes for snapshotId.
      • setSnapshotId

        public CloudWorkspaceSourceContext.Builder setSnapshotId​(String value)
         The ID of the snapshot.
         An empty snapshot_id refers to the most recent snapshot.
         
        string snapshot_id = 2;
        Parameters:
        value - The snapshotId to set.
        Returns:
        This builder for chaining.
      • clearSnapshotId

        public CloudWorkspaceSourceContext.Builder clearSnapshotId()
         The ID of the snapshot.
         An empty snapshot_id refers to the most recent snapshot.
         
        string snapshot_id = 2;
        Returns:
        This builder for chaining.
      • setSnapshotIdBytes

        public CloudWorkspaceSourceContext.Builder setSnapshotIdBytes​(com.google.protobuf.ByteString value)
         The ID of the snapshot.
         An empty snapshot_id refers to the most recent snapshot.
         
        string snapshot_id = 2;
        Parameters:
        value - The bytes for snapshotId to set.
        Returns:
        This builder for chaining.
      • mergeUnknownFields

        public final CloudWorkspaceSourceContext.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CloudWorkspaceSourceContext.Builder>